authentik.EventRule
Explore with Pulumi AI
Create EventRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventRule(name: string, args: EventRuleArgs, opts?: CustomResourceOptions);
@overload
def EventRule(resource_name: str,
args: EventRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
transports: Optional[Sequence[str]] = None,
destination_event_user: Optional[bool] = None,
destination_group: Optional[str] = None,
event_rule_id: Optional[str] = None,
name: Optional[str] = None,
severity: Optional[str] = None)
func NewEventRule(ctx *Context, name string, args EventRuleArgs, opts ...ResourceOption) (*EventRule, error)
public EventRule(string name, EventRuleArgs args, CustomResourceOptions? opts = null)
public EventRule(String name, EventRuleArgs args)
public EventRule(String name, EventRuleArgs args, CustomResourceOptions options)
type: authentik:EventRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EventRuleArgs
- 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 EventRuleArgs
- 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 EventRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var eventRuleResource = new Authentik.EventRule("eventRuleResource", new()
{
Transports = new[]
{
"string",
},
DestinationEventUser = false,
DestinationGroup = "string",
EventRuleId = "string",
Name = "string",
Severity = "string",
});
example, err := authentik.NewEventRule(ctx, "eventRuleResource", &authentik.EventRuleArgs{
Transports: pulumi.StringArray{
pulumi.String("string"),
},
DestinationEventUser: pulumi.Bool(false),
DestinationGroup: pulumi.String("string"),
EventRuleId: pulumi.String("string"),
Name: pulumi.String("string"),
Severity: pulumi.String("string"),
})
var eventRuleResource = new EventRule("eventRuleResource", EventRuleArgs.builder()
.transports("string")
.destinationEventUser(false)
.destinationGroup("string")
.eventRuleId("string")
.name("string")
.severity("string")
.build());
event_rule_resource = authentik.EventRule("eventRuleResource",
transports=["string"],
destination_event_user=False,
destination_group="string",
event_rule_id="string",
name="string",
severity="string")
const eventRuleResource = new authentik.EventRule("eventRuleResource", {
transports: ["string"],
destinationEventUser: false,
destinationGroup: "string",
eventRuleId: "string",
name: "string",
severity: "string",
});
type: authentik:EventRule
properties:
destinationEventUser: false
destinationGroup: string
eventRuleId: string
name: string
severity: string
transports:
- string
EventRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EventRule resource accepts the following input properties:
- Transports List<string>
- Destination
Event boolUser - Send notification to event user Defaults to
false
. - Destination
Group string - Group to send notification to
- Event
Rule stringId - Name string
- Severity string
- Allowed values: -
notice
-warning
-alert
Defaults towarning
.
- Transports []string
- Destination
Event boolUser - Send notification to event user Defaults to
false
. - Destination
Group string - Group to send notification to
- Event
Rule stringId - Name string
- Severity string
- Allowed values: -
notice
-warning
-alert
Defaults towarning
.
- transports List<String>
- destination
Event BooleanUser - Send notification to event user Defaults to
false
. - destination
Group String - Group to send notification to
- event
Rule StringId - name String
- severity String
- Allowed values: -
notice
-warning
-alert
Defaults towarning
.
- transports string[]
- destination
Event booleanUser - Send notification to event user Defaults to
false
. - destination
Group string - Group to send notification to
- event
Rule stringId - name string
- severity string
- Allowed values: -
notice
-warning
-alert
Defaults towarning
.
- transports Sequence[str]
- destination_
event_ booluser - Send notification to event user Defaults to
false
. - destination_
group str - Group to send notification to
- event_
rule_ strid - name str
- severity str
- Allowed values: -
notice
-warning
-alert
Defaults towarning
.
- transports List<String>
- destination
Event BooleanUser - Send notification to event user Defaults to
false
. - destination
Group String - Group to send notification to
- event
Rule StringId - name String
- severity String
- Allowed values: -
notice
-warning
-alert
Defaults towarning
.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventRule 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 EventRule Resource
Get an existing EventRule 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?: EventRuleState, opts?: CustomResourceOptions): EventRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
destination_event_user: Optional[bool] = None,
destination_group: Optional[str] = None,
event_rule_id: Optional[str] = None,
name: Optional[str] = None,
severity: Optional[str] = None,
transports: Optional[Sequence[str]] = None) -> EventRule
func GetEventRule(ctx *Context, name string, id IDInput, state *EventRuleState, opts ...ResourceOption) (*EventRule, error)
public static EventRule Get(string name, Input<string> id, EventRuleState? state, CustomResourceOptions? opts = null)
public static EventRule get(String name, Output<String> id, EventRuleState state, CustomResourceOptions options)
resources: _: type: authentik:EventRule get: id: ${id}
- 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.
- Destination
Event boolUser - Send notification to event user Defaults to
false
. - Destination
Group string - Group to send notification to
- Event
Rule stringId - Name string
- Severity string
- Allowed values: -
notice
-warning
-alert
Defaults towarning
. - Transports List<string>
- Destination
Event boolUser - Send notification to event user Defaults to
false
. - Destination
Group string - Group to send notification to
- Event
Rule stringId - Name string
- Severity string
- Allowed values: -
notice
-warning
-alert
Defaults towarning
. - Transports []string
- destination
Event BooleanUser - Send notification to event user Defaults to
false
. - destination
Group String - Group to send notification to
- event
Rule StringId - name String
- severity String
- Allowed values: -
notice
-warning
-alert
Defaults towarning
. - transports List<String>
- destination
Event booleanUser - Send notification to event user Defaults to
false
. - destination
Group string - Group to send notification to
- event
Rule stringId - name string
- severity string
- Allowed values: -
notice
-warning
-alert
Defaults towarning
. - transports string[]
- destination_
event_ booluser - Send notification to event user Defaults to
false
. - destination_
group str - Group to send notification to
- event_
rule_ strid - name str
- severity str
- Allowed values: -
notice
-warning
-alert
Defaults towarning
. - transports Sequence[str]
- destination
Event BooleanUser - Send notification to event user Defaults to
false
. - destination
Group String - Group to send notification to
- event
Rule StringId - name String
- severity String
- Allowed values: -
notice
-warning
-alert
Defaults towarning
. - transports List<String>
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentik
Terraform Provider.