Thanks to visit codestin.com
Credit goes to docs.aws.amazon.com

Show / Hide Table of Contents

Class CfnRepository

Creates a new, empty repository.

Inheritance
object
CfnElement
CfnRefElement
CfnResource
CfnRepository
Implements
IInspectable
IRepositoryRef
IConstruct
IDependable
ITaggable
Inherited Members
CfnResource.IsCfnResource(object)
CfnResource.AddDeletionOverride(string)
CfnResource.AddDependency(CfnResource)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(string, object)
CfnResource.AddOverride(string, object)
CfnResource.AddPropertyDeletionOverride(string)
CfnResource.AddPropertyOverride(string, object)
CfnResource.ApplyRemovalPolicy(RemovalPolicy?, IRemovalPolicyOptions)
CfnResource.GetAtt(string, ResolutionTypeHint?)
CfnResource.GetMetadata(string)
CfnResource.ObtainDependencies()
CfnResource.ObtainResourceDependencies()
CfnResource.RemoveDependency(CfnResource)
CfnResource.ReplaceDependency(CfnResource, CfnResource)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnResource.UpdatedProperties
CfnRefElement.Ref
CfnElement.IsCfnElement(object)
CfnElement.OverrideLogicalId(string)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK.AWS.CodeCommit
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRepository : CfnResource, IInspectable, IRepositoryRef, IConstruct, IDependable, ITaggable
Syntax (vb)
Public Class CfnRepository Inherits CfnResource Implements IInspectable, IRepositoryRef, IConstruct, IDependable, ITaggable
Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CodeCommit;

             var cfnRepository = new CfnRepository(this, "MyCfnRepository", new CfnRepositoryProps {
                 RepositoryName = "repositoryName",

                 // the properties below are optional
                 Code = new CodeProperty {
                     S3 = new S3Property {
                         Bucket = "bucket",
                         Key = "key",

                         // the properties below are optional
                         ObjectVersion = "objectVersion"
                     },

                     // the properties below are optional
                     BranchName = "branchName"
                 },
                 KmsKeyId = "kmsKeyId",
                 RepositoryDescription = "repositoryDescription",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } },
                 Triggers = new [] { new RepositoryTriggerProperty {
                     DestinationArn = "destinationArn",
                     Events = new [] { "events" },
                     Name = "name",

                     // the properties below are optional
                     Branches = new [] { "branches" },
                     CustomData = "customData"
                 } }
             });

Synopsis

Constructors

CfnRepository(Construct, string, ICfnRepositoryProps)

Creates a new, empty repository.

Properties

AttrArn

When you pass the logical ID of this resource, the function returns the Amazon Resource Name (ARN) of the repository.

AttrCloneUrlHttp

When you pass the logical ID of this resource, the function returns the URL to use for cloning the repository over HTTPS.

AttrCloneUrlSsh

When you pass the logical ID of this resource, the function returns the URL to use for cloning the repository over SSH.

AttrId

Creates a new, empty repository.

AttrName

When you pass the logical ID of this resource, the function returns the repository's name.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties

Creates a new, empty repository.

Code

Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.

KmsKeyId

The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.

RepositoryDescription

A comment or description about the new repository.

RepositoryName

The name of the new repository to be created.

RepositoryRef

A reference to a Repository resource.

Tags

Tag Manager which manages the tags for this resource.

TagsRaw

One or more tag key-value pairs to use when tagging this repository.

Triggers

The JSON block of configuration information for each trigger.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

RenderProperties(IDictionary<string, object>)

Creates a new, empty repository.

Constructors

CfnRepository(Construct, string, ICfnRepositoryProps)

Creates a new, empty repository.

public CfnRepository(Construct scope, string id, ICfnRepositoryProps props)
Parameters
scope Construct

Scope in which this resource is defined.

id string

Construct identifier for this resource (unique in its scope).

props ICfnRepositoryProps

Resource properties.

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Properties

AttrArn

When you pass the logical ID of this resource, the function returns the Amazon Resource Name (ARN) of the repository.

public virtual string AttrArn { get; }
Property Value

string

Remarks

CloudformationAttribute: Arn

AttrCloneUrlHttp

When you pass the logical ID of this resource, the function returns the URL to use for cloning the repository over HTTPS.

public virtual string AttrCloneUrlHttp { get; }
Property Value

string

Remarks

CloudformationAttribute: CloneUrlHttp

AttrCloneUrlSsh

When you pass the logical ID of this resource, the function returns the URL to use for cloning the repository over SSH.

public virtual string AttrCloneUrlSsh { get; }
Property Value

string

Remarks

CloudformationAttribute: CloneUrlSsh

AttrId

Creates a new, empty repository.

public virtual string AttrId { get; }
Property Value

string

Remarks

CloudformationAttribute: Id

AttrName

When you pass the logical ID of this resource, the function returns the repository's name.

public virtual string AttrName { get; }
Property Value

string

Remarks

CloudformationAttribute: Name

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

string

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

CfnProperties

Creates a new, empty repository.

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

IDictionary<string, object>

Overrides
CfnResource.CfnProperties
Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Code

Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.

public virtual object? Code { get; set; }
Property Value

object

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

KmsKeyId

The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.

public virtual string? KmsKeyId { get; set; }
Property Value

string

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

RepositoryDescription

A comment or description about the new repository.

public virtual string? RepositoryDescription { get; set; }
Property Value

string

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

RepositoryName

The name of the new repository to be created.

public virtual string RepositoryName { get; set; }
Property Value

string

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

RepositoryRef

A reference to a Repository resource.

public virtual IRepositoryReference RepositoryRef { get; }
Property Value

IRepositoryReference

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Tags

Tag Manager which manages the tags for this resource.

public virtual TagManager Tags { get; }
Property Value

TagManager

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

TagsRaw

One or more tag key-value pairs to use when tagging this repository.

public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value

ICfnTag[]

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Triggers

The JSON block of configuration information for each trigger.

public virtual object? Triggers { get; set; }
Property Value

object

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)
Parameters
inspector TreeInspector

tree inspector to collect and process attributes.

Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

RenderProperties(IDictionary<string, object>)

Creates a new, empty repository.

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props IDictionary<string, object>
Returns

IDictionary<string, object>

Overrides
CfnResource.RenderProperties(IDictionary<string, object>)
Remarks
AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. <a href="https://docs.aws.amazon.com/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider">Learn more"</a>

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html

CloudformationResource: AWS::CodeCommit::Repository

ExampleMetadata: fixture=_generated

Implements

IInspectable
IRepositoryRef
Constructs.IConstruct
Constructs.IDependable
ITaggable
Back to top Generated by DocFX