<gh_stars>0
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import pulumi
import pulumi.runtime

class Trigger(pulumi.CustomResource):
    """
    Provides a CodeCommit Trigger Resource.
    
    ~> **NOTE on CodeCommit**: The CodeCommit is not yet rolled out
    in all regions - available regions are listed
    [the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region).
    """
    def __init__(__self__, __name__, __opts__=None, repository_name=None, triggers=None):
        """Create a Trigger resource with the given unique name, props, and options."""
        if not __name__:
            raise TypeError('Missing resource name argument (for URN creation)')
        if not isinstance(__name__, basestring):
            raise TypeError('Expected resource name to be a string')
        if __opts__ and not isinstance(__opts__, pulumi.ResourceOptions):
            raise TypeError('Expected resource options to be a ResourceOptions instance')

        __props__ = dict()

        if not repository_name:
            raise TypeError('Missing required property repository_name')
        elif not isinstance(repository_name, basestring):
            raise TypeError('Expected property repository_name to be a basestring')
        __self__.repository_name = repository_name
        """
        The name for the repository. This needs to be less than 100 characters.
        """
        __props__['repositoryName'] = repository_name

        if not triggers:
            raise TypeError('Missing required property triggers')
        elif not isinstance(triggers, list):
            raise TypeError('Expected property triggers to be a list')
        __self__.triggers = triggers
        __props__['triggers'] = triggers

        __self__.configuration_id = pulumi.runtime.UNKNOWN

        super(Trigger, __self__).__init__(
            'aws:codecommit/trigger:Trigger',
            __name__,
            __props__,
            __opts__)

    def set_outputs(self, outs):
        if 'configurationId' in outs:
            self.configuration_id = outs['configurationId']
        if 'repositoryName' in outs:
            self.repository_name = outs['repositoryName']
        if 'triggers' in outs:
            self.triggers = outs['triggers']

# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import pulumi
import pulumi.runtime

class Trigger(pulumi.CustomResource):
    """
    Provides a CodeCommit Trigger Resource.
    
    ~> **NOTE on CodeCommit**: The CodeCommit is not yet rolled out
    in all regions - available regions are listed
    [the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region).
    """
    def __init__(__self__, __name__, __opts__=None, repository_name=None, triggers=None):
        """Create a Trigger resource with the given unique name, props, and options."""
        if not __name__:
            raise TypeError('Missing resource name argument (for URN creation)')
        if not isinstance(__name__, basestring):
            raise TypeError('Expected resource name to be a string')
        if __opts__ and not isinstance(__opts__, pulumi.ResourceOptions):
            raise TypeError('Expected resource options to be a ResourceOptions instance')

        __props__ = dict()

        if not repository_name:
            raise TypeError('Missing required property repository_name')
        elif not isinstance(repository_name, basestring):
            raise TypeError('Expected property repository_name to be a basestring')
        __self__.repository_name = repository_name
        """
        The name for the repository. This needs to be less than 100 characters.
        """
        __props__['repositoryName'] = repository_name

        if not triggers:
            raise TypeError('Missing required property triggers')
        elif not isinstance(triggers, list):
            raise TypeError('Expected property triggers to be a list')
        __self__.triggers = triggers
        __props__['triggers'] = triggers

        __self__.configuration_id = pulumi.runtime.UNKNOWN

        super(Trigger, __self__).__init__(
            'aws:codecommit/trigger:Trigger',
            __name__,
            __props__,
            __opts__)

    def set_outputs(self, outs):
        if 'configurationId' in outs:
            self.configuration_id = outs['configurationId']
        if 'repositoryName' in outs:
            self.repository_name = outs['repositoryName']
        if 'triggers' in outs:
            self.triggers = outs['triggers']
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** Provides a CodeCommit Trigger Resource.          ~> **NOTE on CodeCommit**: The CodeCommit is not yet rolled out     in all regions - available regions are listed     [the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region). Create a Trigger resource with the given unique name, props, and options. The name for the repository. This needs to be less than 100 characters.