Show / Hide Table of Contents

Class CfnConnection

A CloudFormation AWS::CodeStarConnections::Connection.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnResource
CfnConnection
Implements
IConstruct
Constructs.IConstruct
IDependable
IInspectable
Inherited Members
CfnResource.IsCfnResource(IConstruct)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String)
CfnResource.GetMetadata(String)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.CodeStarConnections
Assembly: Amazon.CDK.AWS.CodeStarConnections.dll
Syntax (csharp)
public class CfnConnection : CfnResource, IConstruct, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnConnection
    Inherits CfnResource
    Implements IConstruct, IConstruct, IDependable, IInspectable
Remarks

The AWS::CodeStarConnections::Connection resource can be used to connect external source providers with services like AWS CodePipeline .

Note: A connection created through AWS CloudFormation is in PENDING status by default. You can make its status AVAILABLE by updating the connection in the console.

CloudformationResource: AWS::CodeStarConnections::Connection

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarconnections-connection.html

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.CodeStarConnections;

CfnConnection cfnConnection = new CfnConnection(this, "MyCfnConnection", new CfnConnectionProps {
    ConnectionName = "connectionName",

    // the properties below are optional
    HostArn = "hostArn",
    ProviderType = "providerType",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
});

Synopsis

Constructors

CfnConnection(Construct, String, ICfnConnectionProps)

Create a new AWS::CodeStarConnections::Connection.

CfnConnection(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CfnConnection(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

AttrConnectionArn

The Amazon Resource Name (ARN) of the connection.

AttrConnectionStatus

The current status of the connection.

AttrOwnerAccountId

The AWS account ID of the owner of the connection.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties
ConnectionName

The name of the connection.

HostArn

The Amazon Resource Name (ARN) of the host associated with the connection.

ProviderType

The name of the external provider where your third-party code repository is configured.

Tags

Specifies the tags applied to the resource.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

RenderProperties(IDictionary<String, Object>)

Constructors

CfnConnection(Construct, String, ICfnConnectionProps)

Create a new AWS::CodeStarConnections::Connection.

public CfnConnection(Construct scope, string id, ICfnConnectionProps props)
Parameters
scope Construct
  • scope in which this resource is defined.
id System.String
  • scoped id of the resource.
props ICfnConnectionProps
  • resource properties.

CfnConnection(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CfnConnection(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CfnConnection(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CfnConnection(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

AttrConnectionArn

The Amazon Resource Name (ARN) of the connection.

public virtual string AttrConnectionArn { get; }
Property Value

System.String

Remarks

The ARN is used as the connection reference when the connection is shared between AWS services. For example: arn:aws:codestar-connections:us-west-2:123456789012:connection/39e4c34d-e13a-4e94-a886-ea67651bf042 .

CloudformationAttribute: ConnectionArn

AttrConnectionStatus

The current status of the connection.

public virtual string AttrConnectionStatus { get; }
Property Value

System.String

Remarks

For example: PENDING , AVAILABLE , or ERROR .

CloudformationAttribute: ConnectionStatus

AttrOwnerAccountId

The AWS account ID of the owner of the connection.

public virtual string AttrOwnerAccountId { get; }
Property Value

System.String

Remarks

For Bitbucket, this is the account ID of the owner of the Bitbucket repository. For example: 123456789012 .

CloudformationAttribute: OwnerAccountId

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

System.String

CfnProperties

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

System.Collections.Generic.IDictionary<System.String, System.Object>

Overrides
CfnResource.CfnProperties

ConnectionName

The name of the connection.

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

System.String

Remarks

Connection names must be unique in an AWS user account.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarconnections-connection.html#cfn-codestarconnections-connection-connectionname

HostArn

The Amazon Resource Name (ARN) of the host associated with the connection.

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

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarconnections-connection.html#cfn-codestarconnections-connection-hostarn

ProviderType

The name of the external provider where your third-party code repository is configured.

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

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarconnections-connection.html#cfn-codestarconnections-connection-providertype

Tags

Specifies the tags applied to the resource.

public virtual TagManager Tags { get; }
Property Value

TagManager

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarconnections-connection.html#cfn-codestarconnections-connection-tags

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.

RenderProperties(IDictionary<String, Object>)

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns

System.Collections.Generic.IDictionary<System.String, System.Object>

Overrides
CfnResource.RenderProperties(IDictionary<String, Object>)

Implements

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