Class CfnConnection
The AWS::CodeStarConnections::Connection resource can be used to connect external source providers with services like AWS CodePipeline .
Inherited Members
Namespace: Amazon.CDK.AWS.CodeStarConnections
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnConnection : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnConnection
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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
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;
var 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
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The Amazon Resource Name (ARN) of the connection. |
Attr |
The current status of the connection. |
Attr |
The AWS account ID of the owner of the connection. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Connection |
The name of the connection. |
Host |
The Amazon Resource Name (ARN) of the host associated with the connection. |
Provider |
The name of the external provider where your third-party code repository is configured. |
Tags | Tag Manager which manages the tags for this resource. |
Tags |
Specifies the tags applied to the resource. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
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. By Ref Value 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. Deputy Base. Deputy Props The deputy props
CfnConnection(Construct, String, ICfnConnectionProps)
public CfnConnection(Construct scope, string id, ICfnConnectionProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Connection Props Resource properties.
Properties
AttrConnectionArn
The Amazon Resource Name (ARN) of the connection.
public virtual string AttrConnectionArn { get; }
Property Value
System.
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.
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.
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.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
ConnectionName
The name of the connection.
public virtual string ConnectionName { get; set; }
Property Value
System.
HostArn
The Amazon Resource Name (ARN) of the host associated with the connection.
public virtual string HostArn { get; set; }
Property Value
System.
ProviderType
The name of the external provider where your third-party code repository is configured.
public virtual string ProviderType { get; set; }
Property Value
System.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Specifies the tags applied to the resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfn
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector 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. <System.Generic. IDictionary String , System.Object >
Returns
System.