alicloud.eventbridge.Rule
Explore with Pulumi AI
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)
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:
- Event
Bus stringName The name of event bus.
- Filter
Pattern 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).- Rule
Name string The name of rule.
- Targets
List<Pulumi.
Ali Cloud. Event Bridge. Inputs. Rule Target Args> The target of rule.
- Description string
The description of rule.
- Status string
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.
- Event
Bus stringName The name of event bus.
- Filter
Pattern 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).- Rule
Name string The name of rule.
- Targets
[]Rule
Target Args The target of rule.
- Description string
The description of rule.
- Status string
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.
- event
Bus StringName The name of event bus.
- filter
Pattern 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).- rule
Name String The name of rule.
- targets
List<Rule
Target Args> The target of rule.
- description String
The description of rule.
- status String
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.
- event
Bus stringName The name of event bus.
- filter
Pattern 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).- rule
Name string The name of rule.
- targets
Rule
Target Args[] The target of rule.
- description string
The description of rule.
- status string
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.
- event_
bus_ strname 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[Rule
Target Args] The target of rule.
- description str
The description of rule.
- status str
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.
- event
Bus StringName The name of event bus.
- filter
Pattern 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).- rule
Name 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.
- Description string
The description of rule.
- Event
Bus stringName The name of event bus.
- Filter
Pattern 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).- Rule
Name string The name of rule.
- Status string
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.- Targets
List<Pulumi.
Ali Cloud. Event Bridge. Inputs. Rule Target Args> The target of rule.
- Description string
The description of rule.
- Event
Bus stringName The name of event bus.
- Filter
Pattern 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).- Rule
Name string The name of rule.
- Status string
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.- Targets
[]Rule
Target Args The target of rule.
- description String
The description of rule.
- event
Bus StringName The name of event bus.
- filter
Pattern 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).- rule
Name String The name of rule.
- status String
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.- targets
List<Rule
Target Args> The target of rule.
- description string
The description of rule.
- event
Bus stringName The name of event bus.
- filter
Pattern 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).- rule
Name string The name of rule.
- status string
Rule status, either Enable or Disable. Valid values:
DISABLE
,ENABLE
.- targets
Rule
Target Args[] The target of rule.
- description str
The description of rule.
- event_
bus_ strname 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[Rule
Target Args] The target of rule.
- description String
The description of rule.
- event
Bus StringName The name of event bus.
- filter
Pattern 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).- rule
Name 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.
- Param
Lists List<Pulumi.Ali Cloud. Event Bridge. Inputs. Rule Target Param List> A list of param. See the following
Block param_list
.- Target
Id 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
andacs.rocketmq
.- Dead
Letter Pulumi.Queue Ali Cloud. Event Bridge. Inputs. Rule Target Dead Letter Queue 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 stringStrategy The retry policy that is used to push the event. Valid values:
- Endpoint string
The endpoint of target.
- Param
Lists []RuleTarget Param List A list of param. See the following
Block param_list
.- Target
Id 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
andacs.rocketmq
.- Dead
Letter RuleQueue Target Dead Letter Queue 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 stringStrategy The retry policy that is used to push the event. Valid values:
- endpoint String
The endpoint of target.
- param
Lists List<RuleTarget Param List> A list of param. See the following
Block param_list
.- target
Id 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
andacs.rocketmq
.- dead
Letter RuleQueue Target Dead Letter Queue 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 StringStrategy The retry policy that is used to push the event. Valid values:
- endpoint string
The endpoint of target.
- param
Lists RuleTarget Param List[] A list of param. See the following
Block param_list
.- target
Id 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
andacs.rocketmq
.- dead
Letter RuleQueue Target Dead Letter Queue 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 stringStrategy The retry policy that is used to push the event. Valid values:
- endpoint str
The endpoint of target.
- param_
lists Sequence[RuleTarget Param List] 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
andacs.rocketmq
.- dead_
letter_ Rulequeue Target Dead Letter Queue 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_ strstrategy The retry policy that is used to push the event. Valid values:
- endpoint String
The endpoint of target.
- param
Lists List<Property Map> A list of param. See the following
Block param_list
.- target
Id 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
andacs.rocketmq
.- dead
Letter Property MapQueue 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 StringStrategy 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
.- Resource
Key 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"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.- Value string
The value of param.
- Form string
The format of param. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
.- Resource
Key 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"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.- Value string
The value of param.
- form String
The format of param. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
.- resource
Key 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"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.- value String
The value of param.
- form string
The format of param. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
.- resource
Key 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"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "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"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "false"
.- value str
The value of param.
- form String
The format of param. Valid values:
ORIGINAL
,TEMPLATE
,JSONPATH
,CONSTANT
.- resource
Key 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"
andvalue = "false"
. If you want to setresource_key = "IsBase64Encode"
, please avoid to setvalue = "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.