1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. devopsagent
  6. Trigger

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.78.0
published on Monday, Sep 7, 2026 by Pulumi

    Resource Type definition for AWS::DevOpsAgent::Trigger. A trigger defines an automated action that fires on a schedule within an Agent Space.

    Create Trigger Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Trigger(name: string, args: TriggerArgs, opts?: CustomResourceOptions);
    @overload
    def Trigger(resource_name: str,
                args: TriggerArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Trigger(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                action: Optional[Any] = None,
                agent_space_id: Optional[str] = None,
                condition: Optional[TriggerConditionArgs] = None,
                type: Optional[TriggerType] = None,
                status: Optional[TriggerStatus] = None)
    func NewTrigger(ctx *Context, name string, args TriggerArgs, opts ...ResourceOption) (*Trigger, error)
    public Trigger(string name, TriggerArgs args, CustomResourceOptions? opts = null)
    public Trigger(String name, TriggerArgs args)
    public Trigger(String name, TriggerArgs args, CustomResourceOptions options)
    
    type: aws-native:devopsagent:Trigger
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_devopsagent_trigger" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TriggerArgs
    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 TriggerArgs
    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 TriggerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TriggerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Trigger 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 Trigger resource accepts the following input properties:

    Action object

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    AgentSpaceId string
    The unique identifier of the parent Agent Space.
    Condition Pulumi.AwsNative.DevOpsAgent.Inputs.TriggerCondition
    Type Pulumi.AwsNative.DevOpsAgent.TriggerType
    The type of trigger.
    Status Pulumi.AwsNative.DevOpsAgent.TriggerStatus
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.
    Action interface{}

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    AgentSpaceId string
    The unique identifier of the parent Agent Space.
    Condition TriggerConditionArgs
    Type TriggerType
    The type of trigger.
    Status TriggerStatus
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.
    action any

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    agent_space_id string
    The unique identifier of the parent Agent Space.
    condition object
    type "TIME_BASED"
    The type of trigger.
    status "Active" | "Inactive"
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.
    action Object

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    agentSpaceId String
    The unique identifier of the parent Agent Space.
    condition TriggerCondition
    type TriggerType
    The type of trigger.
    status TriggerStatus
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.
    action any

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    agentSpaceId string
    The unique identifier of the parent Agent Space.
    condition TriggerCondition
    type TriggerType
    The type of trigger.
    status TriggerStatus
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.
    action Any

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    agent_space_id str
    The unique identifier of the parent Agent Space.
    condition TriggerConditionArgs
    type TriggerType
    The type of trigger.
    status TriggerStatus
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.
    action Any

    The action to perform when the trigger fires. A JSON object containing actionType and task.

    Search the CloudFormation User Guide for AWS::DevOpsAgent::Trigger for more information about the expected schema for this property.

    agentSpaceId String
    The unique identifier of the parent Agent Space.
    condition Property Map
    type "TIME_BASED"
    The type of trigger.
    status "Active" | "Inactive"
    The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Trigger resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    CreatedAt string
    The timestamp when the trigger was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    TriggerId string
    The unique identifier of the trigger (assigned by the service on Create).
    UpdatedAt string
    The timestamp when the trigger was last updated.
    Arn string
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    CreatedAt string
    The timestamp when the trigger was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    TriggerId string
    The unique identifier of the trigger (assigned by the service on Create).
    UpdatedAt string
    The timestamp when the trigger was last updated.
    arn string
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    created_at string
    The timestamp when the trigger was created.
    id string
    The provider-assigned unique ID for this managed resource.
    trigger_id string
    The unique identifier of the trigger (assigned by the service on Create).
    updated_at string
    The timestamp when the trigger was last updated.
    arn String
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    createdAt String
    The timestamp when the trigger was created.
    id String
    The provider-assigned unique ID for this managed resource.
    triggerId String
    The unique identifier of the trigger (assigned by the service on Create).
    updatedAt String
    The timestamp when the trigger was last updated.
    arn string
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    createdAt string
    The timestamp when the trigger was created.
    id string
    The provider-assigned unique ID for this managed resource.
    triggerId string
    The unique identifier of the trigger (assigned by the service on Create).
    updatedAt string
    The timestamp when the trigger was last updated.
    arn str
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    created_at str
    The timestamp when the trigger was created.
    id str
    The provider-assigned unique ID for this managed resource.
    trigger_id str
    The unique identifier of the trigger (assigned by the service on Create).
    updated_at str
    The timestamp when the trigger was last updated.
    arn String
    The Amazon Resource Name (ARN) of the trigger. Nested under the parent Agent Space: arn::aidevops:::agentspace//trigger/.
    createdAt String
    The timestamp when the trigger was created.
    id String
    The provider-assigned unique ID for this managed resource.
    triggerId String
    The unique identifier of the trigger (assigned by the service on Create).
    updatedAt String
    The timestamp when the trigger was last updated.

    Supporting Types

    TriggerCondition, TriggerConditionArgs

    The condition that causes the trigger to fire.

    TriggerSchedule, TriggerScheduleArgs

    Schedule configuration for a time-based trigger.
    Expression string
    A cron or rate expression that defines when the trigger fires.
    Expression string
    A cron or rate expression that defines when the trigger fires.
    expression string
    A cron or rate expression that defines when the trigger fires.
    expression String
    A cron or rate expression that defines when the trigger fires.
    expression string
    A cron or rate expression that defines when the trigger fires.
    expression str
    A cron or rate expression that defines when the trigger fires.
    expression String
    A cron or rate expression that defines when the trigger fires.

    TriggerStatus, TriggerStatusArgs

    Active
    Active
    Inactive
    Inactive
    TriggerStatusActive
    Active
    TriggerStatusInactive
    Inactive
    "Active"
    Active
    "Inactive"
    Inactive
    Active
    Active
    Inactive
    Inactive
    Active
    Active
    Inactive
    Inactive
    ACTIVE
    Active
    INACTIVE
    Inactive
    "Active"
    Active
    "Inactive"
    Inactive

    TriggerType, TriggerTypeArgs

    TimeBased
    TIME_BASED
    TriggerTypeTimeBased
    TIME_BASED
    "TIME_BASED"
    TIME_BASED
    TimeBased
    TIME_BASED
    TimeBased
    TIME_BASED
    TIME_BASED
    TIME_BASED
    "TIME_BASED"
    TIME_BASED

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.78.0
    published on Monday, Sep 7, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial