Module Values.RuleDeclarationSource

Represents information about the rule to be created for an associated condition. An example would be creating a new rule for an entry condition, such as a rule that checks for a test result before allowing the run to enter the deployment stage. For more information about conditions, see Stage conditions and How do stage conditions work?. For more information about rules, see the CodePipeline rule reference.

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

    The name of the rule that is created for the condition, such as VariableCheck.

    *)
  2. ruleTypeId : RuleTypeId.t;
    (*

    The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.

    *)
  3. configuration : RuleConfigurationMap.t option;
    (*

    The action configuration fields for the rule.

    *)
  4. commands : CommandList.t option;
    (*

    The shell commands to run with your commands rule in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. Using compute time for this action will incur separate charges in CodeBuild.

    *)
  5. inputArtifacts : InputArtifactList.t option;
    (*

    The input artifacts fields for the rule, such as specifying an input file for the rule.

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

    The pipeline role ARN associated with the rule.

    *)
  7. region : AWSRegionName.t option;
    (*

    The Region for the condition associated with the rule.

    *)
  8. timeoutInMinutes : RuleTimeout.t option;
    (*

    The action timeout for the rule.

    *)
}
Sourceval context_ : string
Sourceval make : ?configuration:??? -> ?commands:??? -> ?inputArtifacts:??? -> ?roleArn:??? -> ?region:??? -> ?timeoutInMinutes:??? -> name:RuleName.t -> ruleTypeId:RuleTypeId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of RuleTimeout.t | `List of [> `String of Command.t | `Structure of (string * [> `String of ArtifactName.t ]) list ] list | `Map of ([> `String of RuleConfigurationKey.t ] * [> `String of RuleConfigurationValue.t ]) list | `String of RuleName.t | `Structure of (string * [> `Enum of string | `String of RuleProvider.t ]) list ]) 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