1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eventbridge
  5. Rule
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

alicloud.eventbridge.Rule

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

    Provides a Event Bridge Rule resource.

    For information about Event Bridge Rule and how to use it, see What is Rule.

    NOTE: Available in v1.129.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleEventBus = new AliCloud.EventBridge.EventBus("exampleEventBus", new()
        {
            EventBusName = "example_value",
        });
    
        var exampleRule = new AliCloud.EventBridge.Rule("exampleRule", new()
        {
            EventBusName = exampleEventBus.Id,
            RuleName = @var.Name,
            Description = "test",
            FilterPattern = "{\"source\":[\"crmabc.newsletter\"],\"type\":[\"UserSignUp\", \"UserLogin\"]}",
            Targets = new[]
            {
                new AliCloud.EventBridge.Inputs.RuleTargetArgs
                {
                    TargetId = "tf-test",
                    Endpoint = "acs:mns:cn-hangzhou:118938335****:queues/tf-test",
                    Type = "acs.mns.queue",
                    ParamLists = new[]
                    {
                        new AliCloud.EventBridge.Inputs.RuleTargetParamListArgs
                        {
                            ResourceKey = "queue",
                            Form = "CONSTANT",
                            Value = "tf-testaccEbRule",
                        },
                        new AliCloud.EventBridge.Inputs.RuleTargetParamListArgs
                        {
                            ResourceKey = "Body",
                            Form = "ORIGINAL",
                        },
                    },
                },
            },
        });
    
    });
    
    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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eventbridge.EventBus;
    import com.pulumi.alicloud.eventbridge.EventBusArgs;
    import com.pulumi.alicloud.eventbridge.Rule;
    import com.pulumi.alicloud.eventbridge.RuleArgs;
    import com.pulumi.alicloud.eventbridge.inputs.RuleTargetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleEventBus = new EventBus("exampleEventBus", EventBusArgs.builder()        
                .eventBusName("example_value")
                .build());
    
            var exampleRule = new Rule("exampleRule", RuleArgs.builder()        
                .eventBusName(exampleEventBus.id())
                .ruleName(var_.name())
                .description("test")
                .filterPattern("{\"source\":[\"crmabc.newsletter\"],\"type\":[\"UserSignUp\", \"UserLogin\"]}")
                .targets(RuleTargetArgs.builder()
                    .targetId("tf-test")
                    .endpoint("acs:mns:cn-hangzhou:118938335****:queues/tf-test")
                    .type("acs.mns.queue")
                    .paramLists(                
                        RuleTargetParamListArgs.builder()
                            .resourceKey("queue")
                            .form("CONSTANT")
                            .value("tf-testaccEbRule")
                            .build(),
                        RuleTargetParamListArgs.builder()
                            .resourceKey("Body")
                            .form("ORIGINAL")
                            .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example_event_bus = alicloud.eventbridge.EventBus("exampleEventBus", event_bus_name="example_value")
    example_rule = alicloud.eventbridge.Rule("exampleRule",
        event_bus_name=example_event_bus.id,
        rule_name=var["name"],
        description="test",
        filter_pattern="{\"source\":[\"crmabc.newsletter\"],\"type\":[\"UserSignUp\", \"UserLogin\"]}",
        targets=[alicloud.eventbridge.RuleTargetArgs(
            target_id="tf-test",
            endpoint="acs:mns:cn-hangzhou:118938335****:queues/tf-test",
            type="acs.mns.queue",
            param_lists=[
                alicloud.eventbridge.RuleTargetParamListArgs(
                    resource_key="queue",
                    form="CONSTANT",
                    value="tf-testaccEbRule",
                ),
                alicloud.eventbridge.RuleTargetParamListArgs(
                    resource_key="Body",
                    form="ORIGINAL",
                ),
            ],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const exampleEventBus = new alicloud.eventbridge.EventBus("exampleEventBus", {eventBusName: "example_value"});
    const exampleRule = new alicloud.eventbridge.Rule("exampleRule", {
        eventBusName: exampleEventBus.id,
        ruleName: _var.name,
        description: "test",
        filterPattern: "{\"source\":[\"crmabc.newsletter\"],\"type\":[\"UserSignUp\", \"UserLogin\"]}",
        targets: [{
            targetId: "tf-test",
            endpoint: "acs:mns:cn-hangzhou:118938335****:queues/tf-test",
            type: "acs.mns.queue",
            paramLists: [
                {
                    resourceKey: "queue",
                    form: "CONSTANT",
                    value: "tf-testaccEbRule",
                },
                {
                    resourceKey: "Body",
                    form: "ORIGINAL",
                },
            ],
        }],
    });
    
    resources:
      exampleEventBus:
        type: alicloud:eventbridge:EventBus
        properties:
          eventBusName: example_value
      exampleRule:
        type: alicloud:eventbridge:Rule
        properties:
          eventBusName: ${exampleEventBus.id}
          ruleName: ${var.name}
          description: test
          filterPattern: '{"source":["crmabc.newsletter"],"type":["UserSignUp", "UserLogin"]}'
          targets:
            - targetId: tf-test
              endpoint: acs:mns:cn-hangzhou:118938335****:queues/tf-test
              type: acs.mns.queue
              paramLists:
                - resourceKey: queue
                  form: CONSTANT
                  value: tf-testaccEbRule
                - resourceKey: Body
                  form: ORIGINAL
    

    Create Rule Resource

    new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);
    @overload
    def Rule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             description: Optional[str] = None,
             event_bus_name: Optional[str] = None,
             filter_pattern: Optional[str] = None,
             rule_name: Optional[str] = None,
             status: Optional[str] = None,
             targets: Optional[Sequence[RuleTargetArgs]] = None)
    @overload
    def Rule(resource_name: str,
             args: RuleArgs,
             opts: Optional[ResourceOptions] = None)
    func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
    public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
    public Rule(String name, RuleArgs args)
    public Rule(String name, RuleArgs args, CustomResourceOptions options)
    
    type: alicloud:eventbridge:Rule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args RuleArgs
    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 RuleArgs
    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 RuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Rule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Rule resource accepts the following input properties:

    EventBusName string

    The name of event bus.

    FilterPattern string

    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).

    RuleName string

    The name of rule.

    Targets List<Pulumi.AliCloud.EventBridge.Inputs.RuleTargetArgs>

    The target of rule.

    Description string

    The description of rule.

    Status string

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    EventBusName string

    The name of event bus.

    FilterPattern string

    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).

    RuleName string

    The name of rule.

    Targets []RuleTargetArgs

    The target of rule.

    Description string

    The description of rule.

    Status string

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    eventBusName String

    The name of event bus.

    filterPattern String

    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).

    ruleName String

    The name of rule.

    targets List<RuleTargetArgs>

    The target of rule.

    description String

    The description of rule.

    status String

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    eventBusName string

    The name of event bus.

    filterPattern string

    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).

    ruleName string

    The name of rule.

    targets RuleTargetArgs[]

    The target of rule.

    description string

    The description of rule.

    status string

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    event_bus_name str

    The name of event bus.

    filter_pattern str

    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).

    rule_name str

    The name of rule.

    targets Sequence[RuleTargetArgs]

    The target of rule.

    description str

    The description of rule.

    status str

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    eventBusName String

    The name of event bus.

    filterPattern String

    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).

    ruleName String

    The name of rule.

    targets List<Property Map>

    The target of rule.

    description String

    The description of rule.

    status String

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing Rule Resource

    Get an existing Rule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RuleState, opts?: CustomResourceOptions): Rule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            event_bus_name: Optional[str] = None,
            filter_pattern: Optional[str] = None,
            rule_name: Optional[str] = None,
            status: Optional[str] = None,
            targets: Optional[Sequence[RuleTargetArgs]] = None) -> Rule
    func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
    public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
    public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string

    The description of rule.

    EventBusName string

    The name of event bus.

    FilterPattern string

    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).

    RuleName string

    The name of rule.

    Status string

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    Targets List<Pulumi.AliCloud.EventBridge.Inputs.RuleTargetArgs>

    The target of rule.

    Description string

    The description of rule.

    EventBusName string

    The name of event bus.

    FilterPattern string

    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).

    RuleName string

    The name of rule.

    Status string

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    Targets []RuleTargetArgs

    The target of rule.

    description String

    The description of rule.

    eventBusName String

    The name of event bus.

    filterPattern String

    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).

    ruleName String

    The name of rule.

    status String

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    targets List<RuleTargetArgs>

    The target of rule.

    description string

    The description of rule.

    eventBusName string

    The name of event bus.

    filterPattern string

    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).

    ruleName string

    The name of rule.

    status string

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    targets RuleTargetArgs[]

    The target of rule.

    description str

    The description of rule.

    event_bus_name str

    The name of event bus.

    filter_pattern str

    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).

    rule_name str

    The name of rule.

    status str

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    targets Sequence[RuleTargetArgs]

    The target of rule.

    description String

    The description of rule.

    eventBusName String

    The name of event bus.

    filterPattern String

    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).

    ruleName String

    The name of rule.

    status String

    Rule status, either Enable or Disable. Valid values: DISABLE, ENABLE.

    targets List<Property Map>

    The target of rule.

    Supporting Types

    RuleTarget

    Endpoint string

    The endpoint of target.

    ParamLists List<Pulumi.AliCloud.EventBridge.Inputs.RuleTargetParamList>

    A list of param. See the following Block param_list.

    TargetId string

    The ID of target.

    Type string

    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.

    DeadLetterQueue Pulumi.AliCloud.EventBridge.Inputs.RuleTargetDeadLetterQueue

    Dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See the following Block dead_letter_queue.

    PushRetryStrategy string

    The retry policy that is used to push the event. Valid values:

    Endpoint string

    The endpoint of target.

    ParamLists []RuleTargetParamList

    A list of param. See the following Block param_list.

    TargetId string

    The ID of target.

    Type string

    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.

    DeadLetterQueue RuleTargetDeadLetterQueue

    Dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See the following Block dead_letter_queue.

    PushRetryStrategy string

    The retry policy that is used to push the event. Valid values:

    endpoint String

    The endpoint of target.

    paramLists List<RuleTargetParamList>

    A list of param. See the following Block param_list.

    targetId String

    The ID of target.

    type String

    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.

    deadLetterQueue RuleTargetDeadLetterQueue

    Dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See the following Block dead_letter_queue.

    pushRetryStrategy String

    The retry policy that is used to push the event. Valid values:

    endpoint string

    The endpoint of target.

    paramLists RuleTargetParamList[]

    A list of param. See the following Block param_list.

    targetId string

    The ID of target.

    type string

    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.

    deadLetterQueue RuleTargetDeadLetterQueue

    Dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See the following Block dead_letter_queue.

    pushRetryStrategy string

    The retry policy that is used to push the event. Valid values:

    endpoint str

    The endpoint of target.

    param_lists Sequence[RuleTargetParamList]

    A list of param. See the following Block param_list.

    target_id str

    The ID of target.

    type str

    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.

    dead_letter_queue RuleTargetDeadLetterQueue

    Dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See the following Block dead_letter_queue.

    push_retry_strategy str

    The retry policy that is used to push the event. Valid values:

    endpoint String

    The endpoint of target.

    paramLists List<Property Map>

    A list of param. See the following Block param_list.

    targetId String

    The ID of target.

    type String

    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.

    deadLetterQueue Property Map

    Dead letter queue. Events that are not processed or exceed the number of retries will be written to the dead letter. Support message service MNS and message queue RocketMQ. See the following Block dead_letter_queue.

    pushRetryStrategy String

    The retry policy that is used to push the event. Valid values:

    RuleTargetDeadLetterQueue

    Arn string

    The srn of the dead letter queue.

    Arn string

    The srn of the dead letter queue.

    arn String

    The srn of the dead letter queue.

    arn string

    The srn of the dead letter queue.

    arn str

    The srn of the dead letter queue.

    arn String

    The srn of the dead letter queue.

    RuleTargetParamList

    Form string

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

    ResourceKey string

    The resource key of param. For more information, see Event target parameters

    Template string

    The template of param.

    NOTE: There exists a potential diff error that the backend service will return a default param as following:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    In order to fix the diff, from version 1.160.0, this resource has removed the param which resource_key = "IsBase64Encode" and value = "false". If you want to set resource_key = "IsBase64Encode", please avoid to set value = "false".

    Value string

    The value of param.

    Form string

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

    ResourceKey string

    The resource key of param. For more information, see Event target parameters

    Template string

    The template of param.

    NOTE: There exists a potential diff error that the backend service will return a default param as following:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    In order to fix the diff, from version 1.160.0, this resource has removed the param which resource_key = "IsBase64Encode" and value = "false". If you want to set resource_key = "IsBase64Encode", please avoid to set value = "false".

    Value string

    The value of param.

    form String

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

    resourceKey String

    The resource key of param. For more information, see Event target parameters

    template String

    The template of param.

    NOTE: There exists a potential diff error that the backend service will return a default param as following:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    In order to fix the diff, from version 1.160.0, this resource has removed the param which resource_key = "IsBase64Encode" and value = "false". If you want to set resource_key = "IsBase64Encode", please avoid to set value = "false".

    value String

    The value of param.

    form string

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

    resourceKey string

    The resource key of param. For more information, see Event target parameters

    template string

    The template of param.

    NOTE: There exists a potential diff error that the backend service will return a default param as following:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    In order to fix the diff, from version 1.160.0, this resource has removed the param which resource_key = "IsBase64Encode" and value = "false". If you want to set resource_key = "IsBase64Encode", please avoid to set value = "false".

    value string

    The value of param.

    form str

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

    resource_key str

    The resource key of param. For more information, see Event target parameters

    template str

    The template of param.

    NOTE: There exists a potential diff error that the backend service will return a default param as following:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    In order to fix the diff, from version 1.160.0, this resource has removed the param which resource_key = "IsBase64Encode" and value = "false". If you want to set resource_key = "IsBase64Encode", please avoid to set value = "false".

    value str

    The value of param.

    form String

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

    resourceKey String

    The resource key of param. For more information, see Event target parameters

    template String

    The template of param.

    NOTE: There exists a potential diff error that the backend service will return a default param as following:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    In order to fix the diff, from version 1.160.0, this resource has removed the param which resource_key = "IsBase64Encode" and value = "false". If you want to set resource_key = "IsBase64Encode", please avoid to set value = "false".

    value String

    The value of param.

    Import

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

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi