events

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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 GetRuleAction

type GetRuleAction struct {
	// A list of one or more Action objects.
	Actions []GetRuleActionAction `pulumi:"actions"`
}

type GetRuleActionAction

type GetRuleActionAction struct {
	// The action to perform if the condition in the rule matches an event.
	// * **ONS:** Send to an Oracle Notification Service topic.
	// * **OSS:** Send to a stream from Oracle Streaming Service.
	// * **FAAS:** Send to an Oracle Functions Service endpoint.
	ActionType string `pulumi:"actionType"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description string `pulumi:"description"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.
	FunctionId string `pulumi:"functionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id string `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled bool `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage string `pulumi:"lifecycleMessage"`
	// The current state of the rule.
	State string `pulumi:"state"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.
	StreamId string `pulumi:"streamId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.
	TopicId string `pulumi:"topicId"`
}

type GetRuleActionActionArgs

type GetRuleActionActionArgs struct {
	// The action to perform if the condition in the rule matches an event.
	// * **ONS:** Send to an Oracle Notification Service topic.
	// * **OSS:** Send to a stream from Oracle Streaming Service.
	// * **FAAS:** Send to an Oracle Functions Service endpoint.
	ActionType pulumi.StringInput `pulumi:"actionType"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringInput `pulumi:"description"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.
	FunctionId pulumi.StringInput `pulumi:"functionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled pulumi.BoolInput `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage pulumi.StringInput `pulumi:"lifecycleMessage"`
	// The current state of the rule.
	State pulumi.StringInput `pulumi:"state"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.
	StreamId pulumi.StringInput `pulumi:"streamId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.
	TopicId pulumi.StringInput `pulumi:"topicId"`
}

func (GetRuleActionActionArgs) ElementType

func (GetRuleActionActionArgs) ElementType() reflect.Type

func (GetRuleActionActionArgs) ToGetRuleActionActionOutput

func (i GetRuleActionActionArgs) ToGetRuleActionActionOutput() GetRuleActionActionOutput

func (GetRuleActionActionArgs) ToGetRuleActionActionOutputWithContext

func (i GetRuleActionActionArgs) ToGetRuleActionActionOutputWithContext(ctx context.Context) GetRuleActionActionOutput

type GetRuleActionActionArray

type GetRuleActionActionArray []GetRuleActionActionInput

func (GetRuleActionActionArray) ElementType

func (GetRuleActionActionArray) ElementType() reflect.Type

func (GetRuleActionActionArray) ToGetRuleActionActionArrayOutput

func (i GetRuleActionActionArray) ToGetRuleActionActionArrayOutput() GetRuleActionActionArrayOutput

func (GetRuleActionActionArray) ToGetRuleActionActionArrayOutputWithContext

func (i GetRuleActionActionArray) ToGetRuleActionActionArrayOutputWithContext(ctx context.Context) GetRuleActionActionArrayOutput

type GetRuleActionActionArrayInput

type GetRuleActionActionArrayInput interface {
	pulumi.Input

	ToGetRuleActionActionArrayOutput() GetRuleActionActionArrayOutput
	ToGetRuleActionActionArrayOutputWithContext(context.Context) GetRuleActionActionArrayOutput
}

GetRuleActionActionArrayInput is an input type that accepts GetRuleActionActionArray and GetRuleActionActionArrayOutput values. You can construct a concrete instance of `GetRuleActionActionArrayInput` via:

GetRuleActionActionArray{ GetRuleActionActionArgs{...} }

type GetRuleActionActionArrayOutput

type GetRuleActionActionArrayOutput struct{ *pulumi.OutputState }

func (GetRuleActionActionArrayOutput) ElementType

func (GetRuleActionActionArrayOutput) Index

func (GetRuleActionActionArrayOutput) ToGetRuleActionActionArrayOutput

func (o GetRuleActionActionArrayOutput) ToGetRuleActionActionArrayOutput() GetRuleActionActionArrayOutput

func (GetRuleActionActionArrayOutput) ToGetRuleActionActionArrayOutputWithContext

func (o GetRuleActionActionArrayOutput) ToGetRuleActionActionArrayOutputWithContext(ctx context.Context) GetRuleActionActionArrayOutput

type GetRuleActionActionInput

type GetRuleActionActionInput interface {
	pulumi.Input

	ToGetRuleActionActionOutput() GetRuleActionActionOutput
	ToGetRuleActionActionOutputWithContext(context.Context) GetRuleActionActionOutput
}

GetRuleActionActionInput is an input type that accepts GetRuleActionActionArgs and GetRuleActionActionOutput values. You can construct a concrete instance of `GetRuleActionActionInput` via:

GetRuleActionActionArgs{...}

type GetRuleActionActionOutput

type GetRuleActionActionOutput struct{ *pulumi.OutputState }

func (GetRuleActionActionOutput) ActionType

The action to perform if the condition in the rule matches an event. * **ONS:** Send to an Oracle Notification Service topic. * **OSS:** Send to a stream from Oracle Streaming Service. * **FAAS:** Send to an Oracle Functions Service endpoint.

func (GetRuleActionActionOutput) Description

A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (GetRuleActionActionOutput) ElementType

func (GetRuleActionActionOutput) ElementType() reflect.Type

func (GetRuleActionActionOutput) FunctionId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.

func (GetRuleActionActionOutput) IsEnabled

Whether or not this rule is currently enabled. Example: `true`

func (GetRuleActionActionOutput) LifecycleMessage

func (o GetRuleActionActionOutput) LifecycleMessage() pulumi.StringOutput

A message generated by the Events service about the current state of this rule.

func (GetRuleActionActionOutput) State

The current state of the rule.

func (GetRuleActionActionOutput) StreamId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.

func (GetRuleActionActionOutput) ToGetRuleActionActionOutput

func (o GetRuleActionActionOutput) ToGetRuleActionActionOutput() GetRuleActionActionOutput

func (GetRuleActionActionOutput) ToGetRuleActionActionOutputWithContext

func (o GetRuleActionActionOutput) ToGetRuleActionActionOutputWithContext(ctx context.Context) GetRuleActionActionOutput

func (GetRuleActionActionOutput) TopicId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.

type GetRuleActionArgs

type GetRuleActionArgs struct {
	// A list of one or more Action objects.
	Actions GetRuleActionActionArrayInput `pulumi:"actions"`
}

func (GetRuleActionArgs) ElementType

func (GetRuleActionArgs) ElementType() reflect.Type

func (GetRuleActionArgs) ToGetRuleActionOutput

func (i GetRuleActionArgs) ToGetRuleActionOutput() GetRuleActionOutput

func (GetRuleActionArgs) ToGetRuleActionOutputWithContext

func (i GetRuleActionArgs) ToGetRuleActionOutputWithContext(ctx context.Context) GetRuleActionOutput

type GetRuleActionArray

type GetRuleActionArray []GetRuleActionInput

func (GetRuleActionArray) ElementType

func (GetRuleActionArray) ElementType() reflect.Type

func (GetRuleActionArray) ToGetRuleActionArrayOutput

func (i GetRuleActionArray) ToGetRuleActionArrayOutput() GetRuleActionArrayOutput

func (GetRuleActionArray) ToGetRuleActionArrayOutputWithContext

func (i GetRuleActionArray) ToGetRuleActionArrayOutputWithContext(ctx context.Context) GetRuleActionArrayOutput

type GetRuleActionArrayInput

type GetRuleActionArrayInput interface {
	pulumi.Input

	ToGetRuleActionArrayOutput() GetRuleActionArrayOutput
	ToGetRuleActionArrayOutputWithContext(context.Context) GetRuleActionArrayOutput
}

GetRuleActionArrayInput is an input type that accepts GetRuleActionArray and GetRuleActionArrayOutput values. You can construct a concrete instance of `GetRuleActionArrayInput` via:

GetRuleActionArray{ GetRuleActionArgs{...} }

type GetRuleActionArrayOutput

type GetRuleActionArrayOutput struct{ *pulumi.OutputState }

func (GetRuleActionArrayOutput) ElementType

func (GetRuleActionArrayOutput) ElementType() reflect.Type

func (GetRuleActionArrayOutput) Index

func (GetRuleActionArrayOutput) ToGetRuleActionArrayOutput

func (o GetRuleActionArrayOutput) ToGetRuleActionArrayOutput() GetRuleActionArrayOutput

func (GetRuleActionArrayOutput) ToGetRuleActionArrayOutputWithContext

func (o GetRuleActionArrayOutput) ToGetRuleActionArrayOutputWithContext(ctx context.Context) GetRuleActionArrayOutput

type GetRuleActionInput

type GetRuleActionInput interface {
	pulumi.Input

	ToGetRuleActionOutput() GetRuleActionOutput
	ToGetRuleActionOutputWithContext(context.Context) GetRuleActionOutput
}

GetRuleActionInput is an input type that accepts GetRuleActionArgs and GetRuleActionOutput values. You can construct a concrete instance of `GetRuleActionInput` via:

GetRuleActionArgs{...}

type GetRuleActionOutput

type GetRuleActionOutput struct{ *pulumi.OutputState }

func (GetRuleActionOutput) Actions

A list of one or more Action objects.

func (GetRuleActionOutput) ElementType

func (GetRuleActionOutput) ElementType() reflect.Type

func (GetRuleActionOutput) ToGetRuleActionOutput

func (o GetRuleActionOutput) ToGetRuleActionOutput() GetRuleActionOutput

func (GetRuleActionOutput) ToGetRuleActionOutputWithContext

func (o GetRuleActionOutput) ToGetRuleActionOutputWithContext(ctx context.Context) GetRuleActionOutput

type GetRulesArgs

type GetRulesArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId string `pulumi:"compartmentId"`
	// A filter to return only rules with descriptions that match the displayName string in this parameter.  Example: `"This rule sends a notification upon completion of DbaaS backup."`
	DisplayName *string          `pulumi:"displayName"`
	Filters     []GetRulesFilter `pulumi:"filters"`
	// A filter to return only rules that match the lifecycle state in this parameter.  Example: `Creating`
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getRules.

type GetRulesFilter

type GetRulesFilter struct {
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetRulesFilterArgs

type GetRulesFilterArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetRulesFilterArgs) ElementType

func (GetRulesFilterArgs) ElementType() reflect.Type

func (GetRulesFilterArgs) ToGetRulesFilterOutput

func (i GetRulesFilterArgs) ToGetRulesFilterOutput() GetRulesFilterOutput

func (GetRulesFilterArgs) ToGetRulesFilterOutputWithContext

func (i GetRulesFilterArgs) ToGetRulesFilterOutputWithContext(ctx context.Context) GetRulesFilterOutput

type GetRulesFilterArray

type GetRulesFilterArray []GetRulesFilterInput

func (GetRulesFilterArray) ElementType

func (GetRulesFilterArray) ElementType() reflect.Type

func (GetRulesFilterArray) ToGetRulesFilterArrayOutput

func (i GetRulesFilterArray) ToGetRulesFilterArrayOutput() GetRulesFilterArrayOutput

func (GetRulesFilterArray) ToGetRulesFilterArrayOutputWithContext

func (i GetRulesFilterArray) ToGetRulesFilterArrayOutputWithContext(ctx context.Context) GetRulesFilterArrayOutput

type GetRulesFilterArrayInput

type GetRulesFilterArrayInput interface {
	pulumi.Input

	ToGetRulesFilterArrayOutput() GetRulesFilterArrayOutput
	ToGetRulesFilterArrayOutputWithContext(context.Context) GetRulesFilterArrayOutput
}

GetRulesFilterArrayInput is an input type that accepts GetRulesFilterArray and GetRulesFilterArrayOutput values. You can construct a concrete instance of `GetRulesFilterArrayInput` via:

GetRulesFilterArray{ GetRulesFilterArgs{...} }

type GetRulesFilterArrayOutput

type GetRulesFilterArrayOutput struct{ *pulumi.OutputState }

func (GetRulesFilterArrayOutput) ElementType

func (GetRulesFilterArrayOutput) ElementType() reflect.Type

func (GetRulesFilterArrayOutput) Index

func (GetRulesFilterArrayOutput) ToGetRulesFilterArrayOutput

func (o GetRulesFilterArrayOutput) ToGetRulesFilterArrayOutput() GetRulesFilterArrayOutput

func (GetRulesFilterArrayOutput) ToGetRulesFilterArrayOutputWithContext

func (o GetRulesFilterArrayOutput) ToGetRulesFilterArrayOutputWithContext(ctx context.Context) GetRulesFilterArrayOutput

type GetRulesFilterInput

type GetRulesFilterInput interface {
	pulumi.Input

	ToGetRulesFilterOutput() GetRulesFilterOutput
	ToGetRulesFilterOutputWithContext(context.Context) GetRulesFilterOutput
}

GetRulesFilterInput is an input type that accepts GetRulesFilterArgs and GetRulesFilterOutput values. You can construct a concrete instance of `GetRulesFilterInput` via:

GetRulesFilterArgs{...}

type GetRulesFilterOutput

type GetRulesFilterOutput struct{ *pulumi.OutputState }

func (GetRulesFilterOutput) ElementType

func (GetRulesFilterOutput) ElementType() reflect.Type

func (GetRulesFilterOutput) Name

func (GetRulesFilterOutput) Regex

func (GetRulesFilterOutput) ToGetRulesFilterOutput

func (o GetRulesFilterOutput) ToGetRulesFilterOutput() GetRulesFilterOutput

func (GetRulesFilterOutput) ToGetRulesFilterOutputWithContext

func (o GetRulesFilterOutput) ToGetRulesFilterOutputWithContext(ctx context.Context) GetRulesFilterOutput

func (GetRulesFilterOutput) Values

type GetRulesOutputArgs

type GetRulesOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// A filter to return only rules with descriptions that match the displayName string in this parameter.  Example: `"This rule sends a notification upon completion of DbaaS backup."`
	DisplayName pulumi.StringPtrInput    `pulumi:"displayName"`
	Filters     GetRulesFilterArrayInput `pulumi:"filters"`
	// A filter to return only rules that match the lifecycle state in this parameter.  Example: `Creating`
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getRules.

func (GetRulesOutputArgs) ElementType

func (GetRulesOutputArgs) ElementType() reflect.Type

type GetRulesResult

type GetRulesResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId string `pulumi:"compartmentId"`
	// A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.  Example: `"This rule sends a notification upon completion of DbaaS backup."`
	DisplayName *string          `pulumi:"displayName"`
	Filters     []GetRulesFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of rules.
	Rules []GetRulesRule `pulumi:"rules"`
	// The current state of the rule.
	State *string `pulumi:"state"`
}

A collection of values returned by getRules.

func GetRules

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

This data source provides the list of Rules in Oracle Cloud Infrastructure Events service.

Lists rules for this compartment.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Events"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Events.GetRules(ctx, &events.GetRulesArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(ruleDisplayName),
			State:         pulumi.StringRef(ruleState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRulesResultOutput

type GetRulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRules.

func (GetRulesResultOutput) CompartmentId

func (o GetRulesResultOutput) CompartmentId() pulumi.StringOutput

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.

func (GetRulesResultOutput) DisplayName

A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information. Example: `"This rule sends a notification upon completion of DbaaS backup."`

func (GetRulesResultOutput) ElementType

func (GetRulesResultOutput) ElementType() reflect.Type

func (GetRulesResultOutput) Filters

func (GetRulesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRulesResultOutput) Rules

The list of rules.

func (GetRulesResultOutput) State

The current state of the rule.

func (GetRulesResultOutput) ToGetRulesResultOutput

func (o GetRulesResultOutput) ToGetRulesResultOutput() GetRulesResultOutput

func (GetRulesResultOutput) ToGetRulesResultOutputWithContext

func (o GetRulesResultOutput) ToGetRulesResultOutputWithContext(ctx context.Context) GetRulesResultOutput

type GetRulesRule

type GetRulesRule struct {
	// A list of one or more Action objects.
	Actions []GetRulesRuleAction `pulumi:"actions"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId string `pulumi:"compartmentId"`
	// A filter that specifies the event that will trigger actions associated with this rule. A few  important things to remember about filters:
	// * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`
	Condition string `pulumi:"condition"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description string `pulumi:"description"`
	// A filter to return only rules with descriptions that match the displayName string in this parameter.  Example: `"This rule sends a notification upon completion of DbaaS backup."`
	DisplayName string `pulumi:"displayName"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id string `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled bool `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage string `pulumi:"lifecycleMessage"`
	// A filter to return only rules that match the lifecycle state in this parameter.  Example: `Creating`
	State string `pulumi:"state"`
	// The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.  Example: `2018-09-12T22:47:12.613Z`
	TimeCreated string `pulumi:"timeCreated"`
}

type GetRulesRuleAction

type GetRulesRuleAction struct {
	// A list of one or more Action objects.
	Actions []GetRulesRuleActionAction `pulumi:"actions"`
}

type GetRulesRuleActionAction

type GetRulesRuleActionAction struct {
	// The action to perform if the condition in the rule matches an event.
	// * **ONS:** Send to an Oracle Notification Service topic.
	// * **OSS:** Send to a stream from Oracle Streaming Service.
	// * **FAAS:** Send to an Oracle Functions Service endpoint.
	ActionType string `pulumi:"actionType"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description string `pulumi:"description"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.
	FunctionId string `pulumi:"functionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id string `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled bool `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage string `pulumi:"lifecycleMessage"`
	// A filter to return only rules that match the lifecycle state in this parameter.  Example: `Creating`
	State string `pulumi:"state"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.
	StreamId string `pulumi:"streamId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.
	TopicId string `pulumi:"topicId"`
}

type GetRulesRuleActionActionArgs

type GetRulesRuleActionActionArgs struct {
	// The action to perform if the condition in the rule matches an event.
	// * **ONS:** Send to an Oracle Notification Service topic.
	// * **OSS:** Send to a stream from Oracle Streaming Service.
	// * **FAAS:** Send to an Oracle Functions Service endpoint.
	ActionType pulumi.StringInput `pulumi:"actionType"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringInput `pulumi:"description"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.
	FunctionId pulumi.StringInput `pulumi:"functionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled pulumi.BoolInput `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage pulumi.StringInput `pulumi:"lifecycleMessage"`
	// A filter to return only rules that match the lifecycle state in this parameter.  Example: `Creating`
	State pulumi.StringInput `pulumi:"state"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.
	StreamId pulumi.StringInput `pulumi:"streamId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.
	TopicId pulumi.StringInput `pulumi:"topicId"`
}

func (GetRulesRuleActionActionArgs) ElementType

func (GetRulesRuleActionActionArgs) ToGetRulesRuleActionActionOutput

func (i GetRulesRuleActionActionArgs) ToGetRulesRuleActionActionOutput() GetRulesRuleActionActionOutput

func (GetRulesRuleActionActionArgs) ToGetRulesRuleActionActionOutputWithContext

func (i GetRulesRuleActionActionArgs) ToGetRulesRuleActionActionOutputWithContext(ctx context.Context) GetRulesRuleActionActionOutput

type GetRulesRuleActionActionArray

type GetRulesRuleActionActionArray []GetRulesRuleActionActionInput

func (GetRulesRuleActionActionArray) ElementType

func (GetRulesRuleActionActionArray) ToGetRulesRuleActionActionArrayOutput

func (i GetRulesRuleActionActionArray) ToGetRulesRuleActionActionArrayOutput() GetRulesRuleActionActionArrayOutput

func (GetRulesRuleActionActionArray) ToGetRulesRuleActionActionArrayOutputWithContext

func (i GetRulesRuleActionActionArray) ToGetRulesRuleActionActionArrayOutputWithContext(ctx context.Context) GetRulesRuleActionActionArrayOutput

type GetRulesRuleActionActionArrayInput

type GetRulesRuleActionActionArrayInput interface {
	pulumi.Input

	ToGetRulesRuleActionActionArrayOutput() GetRulesRuleActionActionArrayOutput
	ToGetRulesRuleActionActionArrayOutputWithContext(context.Context) GetRulesRuleActionActionArrayOutput
}

GetRulesRuleActionActionArrayInput is an input type that accepts GetRulesRuleActionActionArray and GetRulesRuleActionActionArrayOutput values. You can construct a concrete instance of `GetRulesRuleActionActionArrayInput` via:

GetRulesRuleActionActionArray{ GetRulesRuleActionActionArgs{...} }

type GetRulesRuleActionActionArrayOutput

type GetRulesRuleActionActionArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleActionActionArrayOutput) ElementType

func (GetRulesRuleActionActionArrayOutput) Index

func (GetRulesRuleActionActionArrayOutput) ToGetRulesRuleActionActionArrayOutput

func (o GetRulesRuleActionActionArrayOutput) ToGetRulesRuleActionActionArrayOutput() GetRulesRuleActionActionArrayOutput

func (GetRulesRuleActionActionArrayOutput) ToGetRulesRuleActionActionArrayOutputWithContext

func (o GetRulesRuleActionActionArrayOutput) ToGetRulesRuleActionActionArrayOutputWithContext(ctx context.Context) GetRulesRuleActionActionArrayOutput

type GetRulesRuleActionActionInput

type GetRulesRuleActionActionInput interface {
	pulumi.Input

	ToGetRulesRuleActionActionOutput() GetRulesRuleActionActionOutput
	ToGetRulesRuleActionActionOutputWithContext(context.Context) GetRulesRuleActionActionOutput
}

GetRulesRuleActionActionInput is an input type that accepts GetRulesRuleActionActionArgs and GetRulesRuleActionActionOutput values. You can construct a concrete instance of `GetRulesRuleActionActionInput` via:

GetRulesRuleActionActionArgs{...}

type GetRulesRuleActionActionOutput

type GetRulesRuleActionActionOutput struct{ *pulumi.OutputState }

func (GetRulesRuleActionActionOutput) ActionType

The action to perform if the condition in the rule matches an event. * **ONS:** Send to an Oracle Notification Service topic. * **OSS:** Send to a stream from Oracle Streaming Service. * **FAAS:** Send to an Oracle Functions Service endpoint.

func (GetRulesRuleActionActionOutput) Description

A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (GetRulesRuleActionActionOutput) ElementType

func (GetRulesRuleActionActionOutput) FunctionId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.

func (GetRulesRuleActionActionOutput) Id

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.

func (GetRulesRuleActionActionOutput) IsEnabled

Whether or not this rule is currently enabled. Example: `true`

func (GetRulesRuleActionActionOutput) LifecycleMessage

func (o GetRulesRuleActionActionOutput) LifecycleMessage() pulumi.StringOutput

A message generated by the Events service about the current state of this rule.

func (GetRulesRuleActionActionOutput) State

A filter to return only rules that match the lifecycle state in this parameter. Example: `Creating`

func (GetRulesRuleActionActionOutput) StreamId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.

func (GetRulesRuleActionActionOutput) ToGetRulesRuleActionActionOutput

func (o GetRulesRuleActionActionOutput) ToGetRulesRuleActionActionOutput() GetRulesRuleActionActionOutput

func (GetRulesRuleActionActionOutput) ToGetRulesRuleActionActionOutputWithContext

func (o GetRulesRuleActionActionOutput) ToGetRulesRuleActionActionOutputWithContext(ctx context.Context) GetRulesRuleActionActionOutput

func (GetRulesRuleActionActionOutput) TopicId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.

type GetRulesRuleActionArgs

type GetRulesRuleActionArgs struct {
	// A list of one or more Action objects.
	Actions GetRulesRuleActionActionArrayInput `pulumi:"actions"`
}

func (GetRulesRuleActionArgs) ElementType

func (GetRulesRuleActionArgs) ElementType() reflect.Type

func (GetRulesRuleActionArgs) ToGetRulesRuleActionOutput

func (i GetRulesRuleActionArgs) ToGetRulesRuleActionOutput() GetRulesRuleActionOutput

func (GetRulesRuleActionArgs) ToGetRulesRuleActionOutputWithContext

func (i GetRulesRuleActionArgs) ToGetRulesRuleActionOutputWithContext(ctx context.Context) GetRulesRuleActionOutput

type GetRulesRuleActionArray

type GetRulesRuleActionArray []GetRulesRuleActionInput

func (GetRulesRuleActionArray) ElementType

func (GetRulesRuleActionArray) ElementType() reflect.Type

func (GetRulesRuleActionArray) ToGetRulesRuleActionArrayOutput

func (i GetRulesRuleActionArray) ToGetRulesRuleActionArrayOutput() GetRulesRuleActionArrayOutput

func (GetRulesRuleActionArray) ToGetRulesRuleActionArrayOutputWithContext

func (i GetRulesRuleActionArray) ToGetRulesRuleActionArrayOutputWithContext(ctx context.Context) GetRulesRuleActionArrayOutput

type GetRulesRuleActionArrayInput

type GetRulesRuleActionArrayInput interface {
	pulumi.Input

	ToGetRulesRuleActionArrayOutput() GetRulesRuleActionArrayOutput
	ToGetRulesRuleActionArrayOutputWithContext(context.Context) GetRulesRuleActionArrayOutput
}

GetRulesRuleActionArrayInput is an input type that accepts GetRulesRuleActionArray and GetRulesRuleActionArrayOutput values. You can construct a concrete instance of `GetRulesRuleActionArrayInput` via:

GetRulesRuleActionArray{ GetRulesRuleActionArgs{...} }

type GetRulesRuleActionArrayOutput

type GetRulesRuleActionArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleActionArrayOutput) ElementType

func (GetRulesRuleActionArrayOutput) Index

func (GetRulesRuleActionArrayOutput) ToGetRulesRuleActionArrayOutput

func (o GetRulesRuleActionArrayOutput) ToGetRulesRuleActionArrayOutput() GetRulesRuleActionArrayOutput

func (GetRulesRuleActionArrayOutput) ToGetRulesRuleActionArrayOutputWithContext

func (o GetRulesRuleActionArrayOutput) ToGetRulesRuleActionArrayOutputWithContext(ctx context.Context) GetRulesRuleActionArrayOutput

type GetRulesRuleActionInput

type GetRulesRuleActionInput interface {
	pulumi.Input

	ToGetRulesRuleActionOutput() GetRulesRuleActionOutput
	ToGetRulesRuleActionOutputWithContext(context.Context) GetRulesRuleActionOutput
}

GetRulesRuleActionInput is an input type that accepts GetRulesRuleActionArgs and GetRulesRuleActionOutput values. You can construct a concrete instance of `GetRulesRuleActionInput` via:

GetRulesRuleActionArgs{...}

type GetRulesRuleActionOutput

type GetRulesRuleActionOutput struct{ *pulumi.OutputState }

func (GetRulesRuleActionOutput) Actions

A list of one or more Action objects.

func (GetRulesRuleActionOutput) ElementType

func (GetRulesRuleActionOutput) ElementType() reflect.Type

func (GetRulesRuleActionOutput) ToGetRulesRuleActionOutput

func (o GetRulesRuleActionOutput) ToGetRulesRuleActionOutput() GetRulesRuleActionOutput

func (GetRulesRuleActionOutput) ToGetRulesRuleActionOutputWithContext

func (o GetRulesRuleActionOutput) ToGetRulesRuleActionOutputWithContext(ctx context.Context) GetRulesRuleActionOutput

type GetRulesRuleArgs

type GetRulesRuleArgs struct {
	// A list of one or more Action objects.
	Actions GetRulesRuleActionArrayInput `pulumi:"actions"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// A filter that specifies the event that will trigger actions associated with this rule. A few  important things to remember about filters:
	// * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`
	Condition pulumi.StringInput `pulumi:"condition"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput `pulumi:"definedTags"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringInput `pulumi:"description"`
	// A filter to return only rules with descriptions that match the displayName string in this parameter.  Example: `"This rule sends a notification upon completion of DbaaS backup."`
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id pulumi.StringInput `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled pulumi.BoolInput `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage pulumi.StringInput `pulumi:"lifecycleMessage"`
	// A filter to return only rules that match the lifecycle state in this parameter.  Example: `Creating`
	State pulumi.StringInput `pulumi:"state"`
	// The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.  Example: `2018-09-12T22:47:12.613Z`
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
}

func (GetRulesRuleArgs) ElementType

func (GetRulesRuleArgs) ElementType() reflect.Type

func (GetRulesRuleArgs) ToGetRulesRuleOutput

func (i GetRulesRuleArgs) ToGetRulesRuleOutput() GetRulesRuleOutput

func (GetRulesRuleArgs) ToGetRulesRuleOutputWithContext

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

type GetRulesRuleArray

type GetRulesRuleArray []GetRulesRuleInput

func (GetRulesRuleArray) ElementType

func (GetRulesRuleArray) ElementType() reflect.Type

func (GetRulesRuleArray) ToGetRulesRuleArrayOutput

func (i GetRulesRuleArray) ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput

func (GetRulesRuleArray) ToGetRulesRuleArrayOutputWithContext

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

type GetRulesRuleArrayInput

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

type GetRulesRuleArrayOutput struct{ *pulumi.OutputState }

func (GetRulesRuleArrayOutput) ElementType

func (GetRulesRuleArrayOutput) ElementType() reflect.Type

func (GetRulesRuleArrayOutput) Index

func (GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutput

func (o GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutput() GetRulesRuleArrayOutput

func (GetRulesRuleArrayOutput) ToGetRulesRuleArrayOutputWithContext

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

type GetRulesRuleInput

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

type GetRulesRuleOutput struct{ *pulumi.OutputState }

func (GetRulesRuleOutput) Actions

A list of one or more Action objects.

func (GetRulesRuleOutput) CompartmentId

func (o GetRulesRuleOutput) CompartmentId() pulumi.StringOutput

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.

func (GetRulesRuleOutput) Condition

func (o GetRulesRuleOutput) Condition() pulumi.StringOutput

A filter that specifies the event that will trigger actions associated with this rule. A few important things to remember about filters: * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`

func (GetRulesRuleOutput) DefinedTags

func (o GetRulesRuleOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetRulesRuleOutput) Description

func (o GetRulesRuleOutput) Description() pulumi.StringOutput

A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (GetRulesRuleOutput) DisplayName

func (o GetRulesRuleOutput) DisplayName() pulumi.StringOutput

A filter to return only rules with descriptions that match the displayName string in this parameter. Example: `"This rule sends a notification upon completion of DbaaS backup."`

func (GetRulesRuleOutput) ElementType

func (GetRulesRuleOutput) ElementType() reflect.Type

func (GetRulesRuleOutput) FreeformTags

func (o GetRulesRuleOutput) FreeformTags() pulumi.MapOutput

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetRulesRuleOutput) IsEnabled

func (o GetRulesRuleOutput) IsEnabled() pulumi.BoolOutput

Whether or not this rule is currently enabled. Example: `true`

func (GetRulesRuleOutput) LifecycleMessage

func (o GetRulesRuleOutput) LifecycleMessage() pulumi.StringOutput

A message generated by the Events service about the current state of this rule.

func (GetRulesRuleOutput) State

A filter to return only rules that match the lifecycle state in this parameter. Example: `Creating`

func (GetRulesRuleOutput) TimeCreated

func (o GetRulesRuleOutput) TimeCreated() pulumi.StringOutput

The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-09-12T22:47:12.613Z`

func (GetRulesRuleOutput) ToGetRulesRuleOutput

func (o GetRulesRuleOutput) ToGetRulesRuleOutput() GetRulesRuleOutput

func (GetRulesRuleOutput) ToGetRulesRuleOutputWithContext

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

type LookupRuleArgs

type LookupRuleArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	RuleId string `pulumi:"ruleId"`
}

A collection of arguments for invoking getRule.

type LookupRuleOutputArgs

type LookupRuleOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	RuleId pulumi.StringInput `pulumi:"ruleId"`
}

A collection of arguments for invoking getRule.

func (LookupRuleOutputArgs) ElementType

func (LookupRuleOutputArgs) ElementType() reflect.Type

type LookupRuleResult

type LookupRuleResult struct {
	// A list of one or more Action objects.
	Actions []GetRuleAction `pulumi:"actions"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId string `pulumi:"compartmentId"`
	// A filter that specifies the event that will trigger actions associated with this rule. A few  important things to remember about filters:
	// * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`
	Condition string `pulumi:"condition"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]interface{} `pulumi:"definedTags"`
	// A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description string `pulumi:"description"`
	// A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.  Example: `"This rule sends a notification upon completion of DbaaS backup."`
	DisplayName string `pulumi:"displayName"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]interface{} `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id string `pulumi:"id"`
	// Whether or not this rule is currently enabled.  Example: `true`
	IsEnabled bool `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage string `pulumi:"lifecycleMessage"`
	RuleId           string `pulumi:"ruleId"`
	// The current state of the rule.
	State string `pulumi:"state"`
	// The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.  Example: `2018-09-12T22:47:12.613Z`
	TimeCreated string `pulumi:"timeCreated"`
}

A collection of values returned by getRule.

func LookupRule

func LookupRule(ctx *pulumi.Context, args *LookupRuleArgs, opts ...pulumi.InvokeOption) (*LookupRuleResult, error)

This data source provides details about a specific Rule resource in Oracle Cloud Infrastructure Events service.

Retrieves a rule.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Events"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Events.GetRule(ctx, &events.GetRuleArgs{
			RuleId: testRuleOciEventsRule.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupRuleResultOutput

type LookupRuleResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRule.

func (LookupRuleResultOutput) Actions

A list of one or more Action objects.

func (LookupRuleResultOutput) CompartmentId

func (o LookupRuleResultOutput) CompartmentId() pulumi.StringOutput

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.

func (LookupRuleResultOutput) Condition

A filter that specifies the event that will trigger actions associated with this rule. A few important things to remember about filters: * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`

func (LookupRuleResultOutput) DefinedTags

func (o LookupRuleResultOutput) DefinedTags() pulumi.MapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (LookupRuleResultOutput) Description

func (o LookupRuleResultOutput) Description() pulumi.StringOutput

A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (LookupRuleResultOutput) DisplayName

func (o LookupRuleResultOutput) DisplayName() pulumi.StringOutput

A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information. Example: `"This rule sends a notification upon completion of DbaaS backup."`

func (LookupRuleResultOutput) ElementType

func (LookupRuleResultOutput) ElementType() reflect.Type

func (LookupRuleResultOutput) FreeformTags

func (o LookupRuleResultOutput) FreeformTags() pulumi.MapOutput

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (LookupRuleResultOutput) IsEnabled

Whether or not this rule is currently enabled. Example: `true`

func (LookupRuleResultOutput) LifecycleMessage

func (o LookupRuleResultOutput) LifecycleMessage() pulumi.StringOutput

A message generated by the Events service about the current state of this rule.

func (LookupRuleResultOutput) RuleId

func (LookupRuleResultOutput) State

The current state of the rule.

func (LookupRuleResultOutput) TimeCreated

func (o LookupRuleResultOutput) TimeCreated() pulumi.StringOutput

The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-09-12T22:47:12.613Z`

func (LookupRuleResultOutput) ToLookupRuleResultOutput

func (o LookupRuleResultOutput) ToLookupRuleResultOutput() LookupRuleResultOutput

func (LookupRuleResultOutput) ToLookupRuleResultOutputWithContext

func (o LookupRuleResultOutput) ToLookupRuleResultOutputWithContext(ctx context.Context) LookupRuleResultOutput

type Rule

type Rule struct {
	pulumi.CustomResourceState

	// (Updatable) A list of one or more ActionDetails objects.
	Actions RuleActionsOutput `pulumi:"actions"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// (Updatable) A filter that specifies the event that will trigger actions associated with this rule. A few  important things to remember about filters:
	// * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`
	//
	// For more examples, see  [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm).
	// * For a condition with fields to match an event, the event must contain all the field names  listed in the condition. Field names must appear in the condition with the same nesting  structure used in the event.
	//
	// For a list of reference events, see  [Services that Produce Events](https://docs.cloud.oracle.com/iaas/Content/Events/Reference/eventsproducers.htm).
	// * Rules apply to events in the compartment in which you create them and any child compartments.  This means that a condition specified by a rule only matches events emitted from resources in  the compartment or any of its child compartments.
	// * Wildcard matching is supported with the asterisk (*) character.
	//
	// For examples of wildcard matching, see  [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm)
	//
	// Example: `\"eventType\": \"com.oraclecloud.databaseservice.autonomous.database.backup.end\"`
	Condition pulumi.StringOutput `pulumi:"condition"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
	// (Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringOutput `pulumi:"description"`
	// (Updatable) A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
	// (Updatable) Whether or not this rule is currently enabled.  Example: `true`
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	IsEnabled pulumi.BoolOutput `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage pulumi.StringOutput `pulumi:"lifecycleMessage"`
	// The current state of the rule.
	State pulumi.StringOutput `pulumi:"state"`
	// The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.  Example: `2018-09-12T22:47:12.613Z`
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
}

This resource provides the Rule resource in Oracle Cloud Infrastructure Events service.

Creates a new rule.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/go/oci/Events"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Events.NewRule(ctx, "test_rule", &Events.RuleArgs{
			Actions: &events.RuleActionsArgs{
				Actions: events.RuleActionsActionArray{
					&events.RuleActionsActionArgs{
						ActionType:  pulumi.Any(ruleActionsActionsActionType),
						IsEnabled:   pulumi.Any(ruleActionsActionsIsEnabled),
						Description: pulumi.Any(ruleActionsActionsDescription),
						FunctionId:  pulumi.Any(testFunction.Id),
						StreamId:    pulumi.Any(testStream.Id),
						TopicId:     pulumi.Any(testTopic.Id),
					},
				},
			},
			CompartmentId: pulumi.Any(compartmentId),
			Condition:     pulumi.Any(ruleCondition),
			DisplayName:   pulumi.Any(ruleDisplayName),
			IsEnabled:     pulumi.Any(ruleIsEnabled),
			DefinedTags: pulumi.Map{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			Description: pulumi.Any(ruleDescription),
			FreeformTags: pulumi.Map{
				"Department": pulumi.Any("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Rules can be imported using the `id`, e.g.

```sh $ pulumi import oci:Events/rule:Rule test_rule "id" ```

func GetRule

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

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

func (*Rule) ElementType() reflect.Type

func (*Rule) ToRuleOutput

func (i *Rule) ToRuleOutput() RuleOutput

func (*Rule) ToRuleOutputWithContext

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

type RuleActions

type RuleActions struct {
	// (Updatable) A list of one or more ActionDetails objects.
	Actions []RuleActionsAction `pulumi:"actions"`
}

type RuleActionsAction

type RuleActionsAction struct {
	// (Updatable) The action to perform if the condition in the rule matches an event.
	// * **ONS:** Send to an Oracle Notification Service topic.
	// * **OSS:** Send to a stream from Oracle Streaming Service.
	// * **FAAS:** Send to an Oracle Functions Service endpoint.
	ActionType string `pulumi:"actionType"`
	// (Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description *string `pulumi:"description"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.
	FunctionId *string `pulumi:"functionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id *string `pulumi:"id"`
	// (Updatable) Whether or not this rule is currently enabled.  Example: `true`
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	IsEnabled bool `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage *string `pulumi:"lifecycleMessage"`
	// The current state of the rule.
	State *string `pulumi:"state"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.
	StreamId *string `pulumi:"streamId"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.
	TopicId *string `pulumi:"topicId"`
}

type RuleActionsActionArgs

type RuleActionsActionArgs struct {
	// (Updatable) The action to perform if the condition in the rule matches an event.
	// * **ONS:** Send to an Oracle Notification Service topic.
	// * **OSS:** Send to a stream from Oracle Streaming Service.
	// * **FAAS:** Send to an Oracle Functions Service endpoint.
	ActionType pulumi.StringInput `pulumi:"actionType"`
	// (Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.
	FunctionId pulumi.StringPtrInput `pulumi:"functionId"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this rule.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// (Updatable) Whether or not this rule is currently enabled.  Example: `true`
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	IsEnabled pulumi.BoolInput `pulumi:"isEnabled"`
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage pulumi.StringPtrInput `pulumi:"lifecycleMessage"`
	// The current state of the rule.
	State pulumi.StringPtrInput `pulumi:"state"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.
	StreamId pulumi.StringPtrInput `pulumi:"streamId"`
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.
	TopicId pulumi.StringPtrInput `pulumi:"topicId"`
}

func (RuleActionsActionArgs) ElementType

func (RuleActionsActionArgs) ElementType() reflect.Type

func (RuleActionsActionArgs) ToRuleActionsActionOutput

func (i RuleActionsActionArgs) ToRuleActionsActionOutput() RuleActionsActionOutput

func (RuleActionsActionArgs) ToRuleActionsActionOutputWithContext

func (i RuleActionsActionArgs) ToRuleActionsActionOutputWithContext(ctx context.Context) RuleActionsActionOutput

type RuleActionsActionArray

type RuleActionsActionArray []RuleActionsActionInput

func (RuleActionsActionArray) ElementType

func (RuleActionsActionArray) ElementType() reflect.Type

func (RuleActionsActionArray) ToRuleActionsActionArrayOutput

func (i RuleActionsActionArray) ToRuleActionsActionArrayOutput() RuleActionsActionArrayOutput

func (RuleActionsActionArray) ToRuleActionsActionArrayOutputWithContext

func (i RuleActionsActionArray) ToRuleActionsActionArrayOutputWithContext(ctx context.Context) RuleActionsActionArrayOutput

type RuleActionsActionArrayInput

type RuleActionsActionArrayInput interface {
	pulumi.Input

	ToRuleActionsActionArrayOutput() RuleActionsActionArrayOutput
	ToRuleActionsActionArrayOutputWithContext(context.Context) RuleActionsActionArrayOutput
}

RuleActionsActionArrayInput is an input type that accepts RuleActionsActionArray and RuleActionsActionArrayOutput values. You can construct a concrete instance of `RuleActionsActionArrayInput` via:

RuleActionsActionArray{ RuleActionsActionArgs{...} }

type RuleActionsActionArrayOutput

type RuleActionsActionArrayOutput struct{ *pulumi.OutputState }

func (RuleActionsActionArrayOutput) ElementType

func (RuleActionsActionArrayOutput) Index

func (RuleActionsActionArrayOutput) ToRuleActionsActionArrayOutput

func (o RuleActionsActionArrayOutput) ToRuleActionsActionArrayOutput() RuleActionsActionArrayOutput

func (RuleActionsActionArrayOutput) ToRuleActionsActionArrayOutputWithContext

func (o RuleActionsActionArrayOutput) ToRuleActionsActionArrayOutputWithContext(ctx context.Context) RuleActionsActionArrayOutput

type RuleActionsActionInput

type RuleActionsActionInput interface {
	pulumi.Input

	ToRuleActionsActionOutput() RuleActionsActionOutput
	ToRuleActionsActionOutputWithContext(context.Context) RuleActionsActionOutput
}

RuleActionsActionInput is an input type that accepts RuleActionsActionArgs and RuleActionsActionOutput values. You can construct a concrete instance of `RuleActionsActionInput` via:

RuleActionsActionArgs{...}

type RuleActionsActionOutput

type RuleActionsActionOutput struct{ *pulumi.OutputState }

func (RuleActionsActionOutput) ActionType

(Updatable) The action to perform if the condition in the rule matches an event. * **ONS:** Send to an Oracle Notification Service topic. * **OSS:** Send to a stream from Oracle Streaming Service. * **FAAS:** Send to an Oracle Functions Service endpoint.

func (RuleActionsActionOutput) Description

(Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (RuleActionsActionOutput) ElementType

func (RuleActionsActionOutput) ElementType() reflect.Type

func (RuleActionsActionOutput) FunctionId

(Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a Function hosted by Oracle Functions Service.

func (RuleActionsActionOutput) IsEnabled

(Updatable) Whether or not this rule is currently enabled. Example: `true`

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (RuleActionsActionOutput) LifecycleMessage

func (o RuleActionsActionOutput) LifecycleMessage() pulumi.StringPtrOutput

A message generated by the Events service about the current state of this rule.

func (RuleActionsActionOutput) State

The current state of the rule.

func (RuleActionsActionOutput) StreamId

(Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stream to which messages are delivered.

func (RuleActionsActionOutput) ToRuleActionsActionOutput

func (o RuleActionsActionOutput) ToRuleActionsActionOutput() RuleActionsActionOutput

func (RuleActionsActionOutput) ToRuleActionsActionOutputWithContext

func (o RuleActionsActionOutput) ToRuleActionsActionOutputWithContext(ctx context.Context) RuleActionsActionOutput

func (RuleActionsActionOutput) TopicId

(Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to which messages are delivered.

type RuleActionsArgs

type RuleActionsArgs struct {
	// (Updatable) A list of one or more ActionDetails objects.
	Actions RuleActionsActionArrayInput `pulumi:"actions"`
}

func (RuleActionsArgs) ElementType

func (RuleActionsArgs) ElementType() reflect.Type

func (RuleActionsArgs) ToRuleActionsOutput

func (i RuleActionsArgs) ToRuleActionsOutput() RuleActionsOutput

func (RuleActionsArgs) ToRuleActionsOutputWithContext

func (i RuleActionsArgs) ToRuleActionsOutputWithContext(ctx context.Context) RuleActionsOutput

func (RuleActionsArgs) ToRuleActionsPtrOutput

func (i RuleActionsArgs) ToRuleActionsPtrOutput() RuleActionsPtrOutput

func (RuleActionsArgs) ToRuleActionsPtrOutputWithContext

func (i RuleActionsArgs) ToRuleActionsPtrOutputWithContext(ctx context.Context) RuleActionsPtrOutput

type RuleActionsInput

type RuleActionsInput interface {
	pulumi.Input

	ToRuleActionsOutput() RuleActionsOutput
	ToRuleActionsOutputWithContext(context.Context) RuleActionsOutput
}

RuleActionsInput is an input type that accepts RuleActionsArgs and RuleActionsOutput values. You can construct a concrete instance of `RuleActionsInput` via:

RuleActionsArgs{...}

type RuleActionsOutput

type RuleActionsOutput struct{ *pulumi.OutputState }

func (RuleActionsOutput) Actions

(Updatable) A list of one or more ActionDetails objects.

func (RuleActionsOutput) ElementType

func (RuleActionsOutput) ElementType() reflect.Type

func (RuleActionsOutput) ToRuleActionsOutput

func (o RuleActionsOutput) ToRuleActionsOutput() RuleActionsOutput

func (RuleActionsOutput) ToRuleActionsOutputWithContext

func (o RuleActionsOutput) ToRuleActionsOutputWithContext(ctx context.Context) RuleActionsOutput

func (RuleActionsOutput) ToRuleActionsPtrOutput

func (o RuleActionsOutput) ToRuleActionsPtrOutput() RuleActionsPtrOutput

func (RuleActionsOutput) ToRuleActionsPtrOutputWithContext

func (o RuleActionsOutput) ToRuleActionsPtrOutputWithContext(ctx context.Context) RuleActionsPtrOutput

type RuleActionsPtrInput

type RuleActionsPtrInput interface {
	pulumi.Input

	ToRuleActionsPtrOutput() RuleActionsPtrOutput
	ToRuleActionsPtrOutputWithContext(context.Context) RuleActionsPtrOutput
}

RuleActionsPtrInput is an input type that accepts RuleActionsArgs, RuleActionsPtr and RuleActionsPtrOutput values. You can construct a concrete instance of `RuleActionsPtrInput` via:

        RuleActionsArgs{...}

or:

        nil

func RuleActionsPtr

func RuleActionsPtr(v *RuleActionsArgs) RuleActionsPtrInput

type RuleActionsPtrOutput

type RuleActionsPtrOutput struct{ *pulumi.OutputState }

func (RuleActionsPtrOutput) Actions

(Updatable) A list of one or more ActionDetails objects.

func (RuleActionsPtrOutput) Elem

func (RuleActionsPtrOutput) ElementType

func (RuleActionsPtrOutput) ElementType() reflect.Type

func (RuleActionsPtrOutput) ToRuleActionsPtrOutput

func (o RuleActionsPtrOutput) ToRuleActionsPtrOutput() RuleActionsPtrOutput

func (RuleActionsPtrOutput) ToRuleActionsPtrOutputWithContext

func (o RuleActionsPtrOutput) ToRuleActionsPtrOutputWithContext(ctx context.Context) RuleActionsPtrOutput

type RuleArgs

type RuleArgs struct {
	// (Updatable) A list of one or more ActionDetails objects.
	Actions RuleActionsInput
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId pulumi.StringInput
	// (Updatable) A filter that specifies the event that will trigger actions associated with this rule. A few  important things to remember about filters:
	// * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`
	//
	// For more examples, see  [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm).
	// * For a condition with fields to match an event, the event must contain all the field names  listed in the condition. Field names must appear in the condition with the same nesting  structure used in the event.
	//
	// For a list of reference events, see  [Services that Produce Events](https://docs.cloud.oracle.com/iaas/Content/Events/Reference/eventsproducers.htm).
	// * Rules apply to events in the compartment in which you create them and any child compartments.  This means that a condition specified by a rule only matches events emitted from resources in  the compartment or any of its child compartments.
	// * Wildcard matching is supported with the asterisk (*) character.
	//
	// For examples of wildcard matching, see  [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm)
	//
	// Example: `\"eventType\": \"com.oraclecloud.databaseservice.autonomous.database.backup.end\"`
	Condition pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringPtrInput
	// (Updatable) A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	DisplayName pulumi.StringInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// (Updatable) Whether or not this rule is currently enabled.  Example: `true`
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	IsEnabled pulumi.BoolInput
}

The set of arguments for constructing a Rule resource.

func (RuleArgs) ElementType

func (RuleArgs) ElementType() reflect.Type

type RuleArray

type RuleArray []RuleInput

func (RuleArray) ElementType

func (RuleArray) ElementType() reflect.Type

func (RuleArray) ToRuleArrayOutput

func (i RuleArray) ToRuleArrayOutput() RuleArrayOutput

func (RuleArray) ToRuleArrayOutputWithContext

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

type RuleArrayInput

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

type RuleArrayOutput struct{ *pulumi.OutputState }

func (RuleArrayOutput) ElementType

func (RuleArrayOutput) ElementType() reflect.Type

func (RuleArrayOutput) Index

func (RuleArrayOutput) ToRuleArrayOutput

func (o RuleArrayOutput) ToRuleArrayOutput() RuleArrayOutput

func (RuleArrayOutput) ToRuleArrayOutputWithContext

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

type RuleInput

type RuleInput interface {
	pulumi.Input

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

type RuleMap

type RuleMap map[string]RuleInput

func (RuleMap) ElementType

func (RuleMap) ElementType() reflect.Type

func (RuleMap) ToRuleMapOutput

func (i RuleMap) ToRuleMapOutput() RuleMapOutput

func (RuleMap) ToRuleMapOutputWithContext

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

type RuleMapInput

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

type RuleMapOutput struct{ *pulumi.OutputState }

func (RuleMapOutput) ElementType

func (RuleMapOutput) ElementType() reflect.Type

func (RuleMapOutput) MapIndex

func (RuleMapOutput) ToRuleMapOutput

func (o RuleMapOutput) ToRuleMapOutput() RuleMapOutput

func (RuleMapOutput) ToRuleMapOutputWithContext

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

type RuleOutput

type RuleOutput struct{ *pulumi.OutputState }

func (RuleOutput) Actions added in v0.4.0

func (o RuleOutput) Actions() RuleActionsOutput

(Updatable) A list of one or more ActionDetails objects.

func (RuleOutput) CompartmentId added in v0.4.0

func (o RuleOutput) CompartmentId() pulumi.StringOutput

(Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.

func (RuleOutput) Condition added in v0.4.0

func (o RuleOutput) Condition() pulumi.StringOutput

(Updatable) A filter that specifies the event that will trigger actions associated with this rule. A few important things to remember about filters: * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`

For more examples, see [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm). * For a condition with fields to match an event, the event must contain all the field names listed in the condition. Field names must appear in the condition with the same nesting structure used in the event.

For a list of reference events, see [Services that Produce Events](https://docs.cloud.oracle.com/iaas/Content/Events/Reference/eventsproducers.htm). * Rules apply to events in the compartment in which you create them and any child compartments. This means that a condition specified by a rule only matches events emitted from resources in the compartment or any of its child compartments. * Wildcard matching is supported with the asterisk (*) character.

For examples of wildcard matching, see [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm)

Example: `\"eventType\": \"com.oraclecloud.databaseservice.autonomous.database.backup.end\"`

func (RuleOutput) DefinedTags added in v0.4.0

func (o RuleOutput) DefinedTags() pulumi.MapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (RuleOutput) Description added in v0.4.0

func (o RuleOutput) Description() pulumi.StringOutput

(Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (RuleOutput) DisplayName added in v0.4.0

func (o RuleOutput) DisplayName() pulumi.StringOutput

(Updatable) A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.

func (RuleOutput) ElementType

func (RuleOutput) ElementType() reflect.Type

func (RuleOutput) FreeformTags added in v0.4.0

func (o RuleOutput) FreeformTags() pulumi.MapOutput

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (RuleOutput) IsEnabled added in v0.4.0

func (o RuleOutput) IsEnabled() pulumi.BoolOutput

(Updatable) Whether or not this rule is currently enabled. Example: `true`

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (RuleOutput) LifecycleMessage added in v0.4.0

func (o RuleOutput) LifecycleMessage() pulumi.StringOutput

A message generated by the Events service about the current state of this rule.

func (RuleOutput) State added in v0.4.0

func (o RuleOutput) State() pulumi.StringOutput

The current state of the rule.

func (RuleOutput) TimeCreated added in v0.4.0

func (o RuleOutput) TimeCreated() pulumi.StringOutput

The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2018-09-12T22:47:12.613Z`

func (RuleOutput) ToRuleOutput

func (o RuleOutput) ToRuleOutput() RuleOutput

func (RuleOutput) ToRuleOutputWithContext

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

type RuleState

type RuleState struct {
	// (Updatable) A list of one or more ActionDetails objects.
	Actions RuleActionsPtrInput
	// (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which this rule belongs.
	CompartmentId pulumi.StringPtrInput
	// (Updatable) A filter that specifies the event that will trigger actions associated with this rule. A few  important things to remember about filters:
	// * Fields not mentioned in the condition are ignored. You can create a valid filter that matches all events with two curly brackets: `{}`
	//
	// For more examples, see  [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm).
	// * For a condition with fields to match an event, the event must contain all the field names  listed in the condition. Field names must appear in the condition with the same nesting  structure used in the event.
	//
	// For a list of reference events, see  [Services that Produce Events](https://docs.cloud.oracle.com/iaas/Content/Events/Reference/eventsproducers.htm).
	// * Rules apply to events in the compartment in which you create them and any child compartments.  This means that a condition specified by a rule only matches events emitted from resources in  the compartment or any of its child compartments.
	// * Wildcard matching is supported with the asterisk (*) character.
	//
	// For examples of wildcard matching, see  [Matching Events with Filters](https://docs.cloud.oracle.com/iaas/Content/Events/Concepts/filterevents.htm)
	//
	// Example: `\"eventType\": \"com.oraclecloud.databaseservice.autonomous.database.backup.end\"`
	Condition pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.MapInput
	// (Updatable) A string that describes the details of the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	Description pulumi.StringPtrInput
	// (Updatable) A string that describes the rule. It does not have to be unique, and you can change it. Avoid entering confidential information.
	DisplayName pulumi.StringPtrInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.MapInput
	// (Updatable) Whether or not this rule is currently enabled.  Example: `true`
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	IsEnabled pulumi.BoolPtrInput
	// A message generated by the Events service about the current state of this rule.
	LifecycleMessage pulumi.StringPtrInput
	// The current state of the rule.
	State pulumi.StringPtrInput
	// The time this rule was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.  Example: `2018-09-12T22:47:12.613Z`
	TimeCreated pulumi.StringPtrInput
}

func (RuleState) ElementType

func (RuleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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