This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
codecommit¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.
- class
pulumi_aws.codecommit.AwaitableGetRepositoryResult(arn=None, clone_url_http=None, clone_url_ssh=None, id=None, repository_id=None, repository_name=None)¶
- class
pulumi_aws.codecommit.GetRepositoryResult(arn=None, clone_url_http=None, clone_url_ssh=None, id=None, repository_id=None, repository_name=None)¶ A collection of values returned by getRepository.
arn= None¶The ARN of the repository
clone_url_http= None¶The URL to use for cloning the repository over HTTPS.
clone_url_ssh= None¶The URL to use for cloning the repository over SSH.
id= None¶The provider-assigned unique ID for this managed resource.
repository_id= None¶The ID of the repository
- class
pulumi_aws.codecommit.Repository(resource_name, opts=None, default_branch=None, description=None, repository_name=None, tags=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CodeCommit Repository Resource.
import pulumi import pulumi_aws as aws test = aws.codecommit.Repository("test", description="This is the Sample App Repository", repository_name="MyTestRepository")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
default_branch (pulumi.Input[str]) – The default branch of the repository. The branch specified here needs to exist.
description (pulumi.Input[str]) – The description of the repository. This needs to be less than 1000 characters
repository_name (pulumi.Input[str]) – The name for the repository. This needs to be less than 100 characters.
tags (pulumi.Input[dict]) – Key-value map of resource tags
arn: pulumi.Output[str] = None¶The ARN of the repository
clone_url_http: pulumi.Output[str] = None¶The URL to use for cloning the repository over HTTPS.
clone_url_ssh: pulumi.Output[str] = None¶The URL to use for cloning the repository over SSH.
default_branch: pulumi.Output[str] = None¶The default branch of the repository. The branch specified here needs to exist.
description: pulumi.Output[str] = None¶The description of the repository. This needs to be less than 1000 characters
repository_id: pulumi.Output[str] = None¶The ID of the repository
repository_name: pulumi.Output[str] = None¶The name for the repository. This needs to be less than 100 characters.
Key-value map of resource tags
- static
get(resource_name, id, opts=None, arn=None, clone_url_http=None, clone_url_ssh=None, default_branch=None, description=None, repository_id=None, repository_name=None, tags=None)¶ Get an existing Repository resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
arn (pulumi.Input[str]) – The ARN of the repository
clone_url_http (pulumi.Input[str]) – The URL to use for cloning the repository over HTTPS.
clone_url_ssh (pulumi.Input[str]) – The URL to use for cloning the repository over SSH.
default_branch (pulumi.Input[str]) – The default branch of the repository. The branch specified here needs to exist.
description (pulumi.Input[str]) – The description of the repository. This needs to be less than 1000 characters
repository_id (pulumi.Input[str]) – The ID of the repository
repository_name (pulumi.Input[str]) – The name for the repository. This needs to be less than 100 characters.
tags (pulumi.Input[dict]) – Key-value map of resource tags
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
- class
pulumi_aws.codecommit.Trigger(resource_name, opts=None, repository_name=None, triggers=None, __props__=None, __name__=None, __opts__=None)¶ Provides a CodeCommit Trigger Resource.
import pulumi import pulumi_aws as aws test_repository = aws.codecommit.Repository("testRepository", repository_name="test") test_trigger = aws.codecommit.Trigger("testTrigger", repository_name=test_repository.repository_name, triggers=[{ "destination_arn": aws_sns_topic["test"]["arn"], "events": ["all"], "name": "all", }])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
repository_name (pulumi.Input[str]) – The name for the repository. This needs to be less than 100 characters.
The triggers object supports the following:
branches(pulumi.Input[list]) - The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.customData(pulumi.Input[str]) - Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.destination_arn(pulumi.Input[str]) - The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).events(pulumi.Input[list]) - The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include:all,updateReference,createReference,deleteReference.name(pulumi.Input[str]) - The name of the trigger.
repository_name: pulumi.Output[str] = None¶The name for the repository. This needs to be less than 100 characters.
- static
get(resource_name, id, opts=None, configuration_id=None, repository_name=None, triggers=None)¶ Get an existing Trigger resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
repository_name (pulumi.Input[str]) – The name for the repository. This needs to be less than 100 characters.
The triggers object supports the following:
branches(pulumi.Input[list]) - The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.customData(pulumi.Input[str]) - Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.destination_arn(pulumi.Input[str]) - The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).events(pulumi.Input[list]) - The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include:all,updateReference,createReference,deleteReference.name(pulumi.Input[str]) - The name of the trigger.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
pulumi_aws.codecommit.get_repository(repository_name=None, opts=None)¶The CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository.
import pulumi import pulumi_aws as aws test = aws.codecommit.get_repository(repository_name="MyTestRepository")
- Parameters
repository_name (str) – The name for the repository. This needs to be less than 100 characters.