import * as cdk from "../../core/lib"; import * as constructs from "constructs"; import * as cfn_parse from "../../core/lib/helpers-internal"; import { ConnectionReference, HostReference, IConnectionRef, IHostRef } from "../../interfaces/generated/aws-codeconnections-interfaces.generated"; /** * A resource that is used to connect third-party source providers with services like CodePipeline. * * Note: A connection created through CloudFormation , the CLI, or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by updating the connection in the console. * * @cloudformationResource AWS::CodeConnections::Connection * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html */ export declare class CfnConnection extends cdk.CfnResource implements cdk.IInspectable, IConnectionRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnConnection from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnConnection; /** * Checks whether the given object is a CfnConnection */ static isCfnConnection(x: any): x is CfnConnection; static arnForConnection(resource: IConnectionRef): string; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * The name of the connection. */ private _connectionName; /** * The Amazon Resource Name (ARN) of the host associated with the connection. */ private _hostArn?; /** * The name of the external provider where your third-party code repository is configured. */ private _providerType?; /** * Specifies the tags applied to a connection. */ private _tags?; protected readonly cfnPropertyNames: Record; /** * Create a new `AWS::CodeConnections::Connection`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnConnectionProps); get connectionRef(): ConnectionReference; /** * The name of the connection. */ get connectionName(): string; /** * The name of the connection. */ set connectionName(value: string); /** * The Amazon Resource Name (ARN) of the host associated with the connection. */ get hostArn(): string | undefined; /** * The Amazon Resource Name (ARN) of the host associated with the connection. */ set hostArn(value: string | undefined); /** * The name of the external provider where your third-party code repository is configured. */ get providerType(): string | undefined; /** * The name of the external provider where your third-party code repository is configured. */ set providerType(value: string | undefined); /** * Specifies the tags applied to a connection. */ get tags(): Array | undefined; /** * Specifies the tags applied to a connection. */ set tags(value: Array | undefined); /** * The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services . * * > The ARN is never reused if the connection is deleted. * * @cloudformationAttribute ConnectionArn */ get attrConnectionArn(): string; /** * The current status of the connection. * * @cloudformationAttribute ConnectionStatus */ get attrConnectionStatus(): string; /** * The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository. * * @cloudformationAttribute OwnerAccountId */ get attrOwnerAccountId(): string; protected get cfnProperties(): Record; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record): Record; } /** * Properties for defining a `CfnConnection` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html */ export interface CfnConnectionProps { /** * The name of the connection. * * Connection names must be unique in an AWS account . * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-connectionname */ readonly connectionName: string; /** * The Amazon Resource Name (ARN) of the host associated with the connection. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-hostarn */ readonly hostArn?: string; /** * The name of the external provider where your third-party code repository is configured. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-providertype */ readonly providerType?: string; /** * Specifies the tags applied to a connection. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-tags */ readonly tags?: Array; } /** * A resource that represents the infrastructure where a third-party provider is installed. * * You create one host for all connections to that provider. * * @cloudformationResource AWS::CodeConnections::Host * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html */ export declare class CfnHost extends cdk.CfnResource implements cdk.IInspectable, IHostRef, cdk.ITaggableV2 { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME: string; /** * Build a CfnHost from CloudFormation properties * * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnHost; /** * Checks whether the given object is a CfnHost */ static isCfnHost(x: any): x is CfnHost; static arnForHost(resource: IHostRef): string; /** * Tag Manager which manages the tags for this resource */ readonly cdkTagManager: cdk.TagManager; /** * The name of the host. */ private _name; /** * The endpoint of the infrastructure where your provider type is installed. */ private _providerEndpoint; /** * The name of the installed provider to be associated with your connection. */ private _providerType; /** * Tags to apply to the host. */ private _tags?; /** * The VPC configuration provisioned for the host. */ private _vpcConfiguration?; protected readonly cfnPropertyNames: Record; /** * Create a new `AWS::CodeConnections::Host`. * * @param scope Scope in which this resource is defined * @param id Construct identifier for this resource (unique in its scope) * @param props Resource properties */ constructor(scope: constructs.Construct, id: string, props: CfnHostProps); get hostRef(): HostReference; /** * The name of the host. */ get name(): string; /** * The name of the host. */ set name(value: string); /** * The endpoint of the infrastructure where your provider type is installed. */ get providerEndpoint(): string; /** * The endpoint of the infrastructure where your provider type is installed. */ set providerEndpoint(value: string); /** * The name of the installed provider to be associated with your connection. */ get providerType(): string; /** * The name of the installed provider to be associated with your connection. */ set providerType(value: string); /** * Tags to apply to the host. */ get tags(): Array | undefined; /** * Tags to apply to the host. */ set tags(value: Array | undefined); /** * The VPC configuration provisioned for the host. */ get vpcConfiguration(): cdk.IResolvable | CfnHost.VpcConfigurationProperty | undefined; /** * The VPC configuration provisioned for the host. */ set vpcConfiguration(value: cdk.IResolvable | CfnHost.VpcConfigurationProperty | undefined); /** * The Amazon Resource Name (ARN) of the host. * * @cloudformationAttribute HostArn */ get attrHostArn(): string; /** * The server-generated unique identifier for the host. * * @cloudformationAttribute HostId */ get attrHostId(): string; /** * The status of the host. * * @cloudformationAttribute Status */ get attrStatus(): string; protected get cfnProperties(): Record; /** * Examines the CloudFormation resource and discloses attributes * * @param inspector tree inspector to collect and process attributes */ inspect(inspector: cdk.TreeInspector): void; protected renderProperties(props: Record): Record; } export declare namespace CfnHost { /** * The VPC configuration provisioned for the host. * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeconnections-host-vpcconfiguration.html */ interface VpcConfigurationProperty { /** * The ID of the security group or security groups associated with the Amazon VPC. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeconnections-host-vpcconfiguration.html#cfn-codeconnections-host-vpcconfiguration-securitygroupids */ readonly securityGroupIds: Array; /** * The ID of the subnet or subnets associated with the Amazon VPC. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeconnections-host-vpcconfiguration.html#cfn-codeconnections-host-vpcconfiguration-subnetids */ readonly subnetIds: Array; /** * The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeconnections-host-vpcconfiguration.html#cfn-codeconnections-host-vpcconfiguration-tlscertificate */ readonly tlsCertificate?: string; /** * The ID of the Amazon VPC connected to the infrastructure where your provider type is installed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeconnections-host-vpcconfiguration.html#cfn-codeconnections-host-vpcconfiguration-vpcid */ readonly vpcId: string; } } /** * Properties for defining a `CfnHost` * * @struct * @stability external * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html */ export interface CfnHostProps { /** * The name of the host. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html#cfn-codeconnections-host-name */ readonly name: string; /** * The endpoint of the infrastructure where your provider type is installed. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html#cfn-codeconnections-host-providerendpoint */ readonly providerEndpoint: string; /** * The name of the installed provider to be associated with your connection. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html#cfn-codeconnections-host-providertype */ readonly providerType: string; /** * Tags to apply to the host. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html#cfn-codeconnections-host-tags */ readonly tags?: Array; /** * The VPC configuration provisioned for the host. * * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-host.html#cfn-codeconnections-host-vpcconfiguration */ readonly vpcConfiguration?: cdk.IResolvable | CfnHost.VpcConfigurationProperty; } export type { IConnectionRef, ConnectionReference }; export type { IHostRef, HostReference };