Show / Hide Table of Contents

Class Trigger

Provides a CodeCommit Trigger Resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var testRepository = new Aws.CodeCommit.Repository("testRepository", new Aws.CodeCommit.RepositoryArgs
    {
        RepositoryName = "test",
    });
    var testTrigger = new Aws.CodeCommit.Trigger("testTrigger", new Aws.CodeCommit.TriggerArgs
    {
        RepositoryName = testRepository.RepositoryName,
        Triggers = 
        {
            new Aws.CodeCommit.Inputs.TriggerTriggerArgs
            {
                DestinationArn = aws_sns_topic.Test.Arn,
                Events = 
                {
                    "all",
                },
                Name = "all",
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Trigger
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CodeCommit
Assembly: Pulumi.Aws.dll
Syntax
public class Trigger : CustomResource

Constructors

View Source

Trigger(String, TriggerArgs, CustomResourceOptions)

Create a Trigger resource with the given unique name, arguments, and options.

Declaration
public Trigger(string name, TriggerArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

TriggerArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ConfigurationId

Declaration
public Output<string> ConfigurationId { get; }
Property Value
Type Description
Output<System.String>
View Source

RepositoryName

The name for the repository. This needs to be less than 100 characters.

Declaration
public Output<string> RepositoryName { get; }
Property Value
Type Description
Output<System.String>
View Source

Triggers

Declaration
public Output<ImmutableArray<TriggerTrigger>> Triggers { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<TriggerTrigger>>

Methods

View Source

Get(String, Input<String>, TriggerState, CustomResourceOptions)

Get an existing Trigger resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Trigger Get(string name, Input<string> id, TriggerState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

TriggerState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Trigger
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.