Module Values.DescribeRuleResponseSource

Describes the specified rule. DescribeRule does not list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.

Sourcetype nonrec t = {
  1. name : RuleName.t option;
    (*

    The name of the rule.

    *)
  2. arn : RuleArn.t option;
    (*

    The Amazon Resource Name (ARN) of the rule.

    *)
  3. eventPattern : EventPattern.t option;
    (*

    The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .

    *)
  4. scheduleExpression : ScheduleExpression.t option;
    (*

    The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".

    *)
  5. state : RuleState.t option;
    (*

    Specifies whether the rule is enabled or disabled.

    *)
  6. description : RuleDescription.t option;
    (*

    The description of the rule.

    *)
  7. roleArn : RoleArn.t option;
    (*

    The Amazon Resource Name (ARN) of the IAM role associated with the rule.

    *)
  8. managedBy : ManagedBy.t option;
    (*

    If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the principal name of the Amazon Web Services service that created the rule.

    *)
  9. eventBusName : EventBusName.t option;
    (*

    The name of the event bus associated with the rule.

    *)
  10. createdBy : CreatedBy.t option;
    (*

    The account ID of the user that created the rule. If you use PutRule to put a rule on an event bus in another account, the other account is the owner of the rule, and the rule ARN includes the account ID for that account. However, the value for CreatedBy is the account ID as the account that created the rule in the other account.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalException of InternalException.t
  2. | `ResourceNotFoundException of ResourceNotFoundException.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval make : ?name:??? -> ?arn:??? -> ?eventPattern:??? -> ?scheduleExpression:??? -> ?state:??? -> ?description:??? -> ?roleArn:??? -> ?managedBy:??? -> ?eventBusName:??? -> ?createdBy:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalException of unit | `ResourceNotFoundException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalException of unit | `ResourceNotFoundException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of RuleName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t