import { Archiver } from 'azure-devops-repository-archiver'
new Archiver(scope: Construct, id: string, props: ArchiverProperties)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ArchiverProperties |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ArchiverProperties
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Archiver } from 'azure-devops-repository-archiver'
Archiver.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
bucket |
aws-cdk-lib.aws_s3.Bucket |
The S3 bucket used to store the git repositories archive. |
kmsKey |
aws-cdk-lib.aws_kms.Key |
The KMS key used to encrypt the logs and the SNS topic. |
logGroup |
aws-cdk-lib.aws_logs.LogGroup |
Log group used by the CodeBuild projects. |
props |
ArchiverProperties |
No description. |
topic |
aws-cdk-lib.aws_sns.Topic |
SNS topic to send configured bucket events to. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly bucket: Bucket;
- Type: aws-cdk-lib.aws_s3.Bucket
The S3 bucket used to store the git repositories archive.
public readonly kmsKey: Key;
- Type: aws-cdk-lib.aws_kms.Key
The KMS key used to encrypt the logs and the SNS topic.
public readonly logGroup: LogGroup;
- Type: aws-cdk-lib.aws_logs.LogGroup
Log group used by the CodeBuild projects.
public readonly props: ArchiverProperties;
- Type: ArchiverProperties
public readonly topic: Topic;
- Type: aws-cdk-lib.aws_sns.Topic
SNS topic to send configured bucket events to.
import { ArchiverProperties } from 'azure-devops-repository-archiver'
const archiverProperties: ArchiverProperties = { ... }
Name | Type | Description |
---|---|---|
backupConfigurations |
BackupConfiguration[] |
Contains details on the git repositories to be backed up. |
notificationEvents |
aws-cdk-lib.aws_s3.EventType[] |
S3 events that will trigger a message to the SNS topic. |
retentionDays |
aws-cdk-lib.aws_logs.RetentionDays |
The number of days to keep the Cloudwatch logs. |
public readonly backupConfigurations: BackupConfiguration[];
- Type: BackupConfiguration[]
Contains details on the git repositories to be backed up.
public readonly notificationEvents: EventType[];
- Type: aws-cdk-lib.aws_s3.EventType[]
S3 events that will trigger a message to the SNS topic.
For example "EventType.LIFECYCLE_EXPIRATION" or "EventType.OBJECT_CREATED".
public readonly retentionDays: RetentionDays;
- Type: aws-cdk-lib.aws_logs.RetentionDays
- Default: RetentionDays.ONE_MONTH
The number of days to keep the Cloudwatch logs.
A backup configuration defining - the repositories to backup, and - the backup interval All repositories that are part of a backup configuration are belonging to the same Azure DevOps organization and project.
import { BackupConfiguration } from 'azure-devops-repository-archiver'
const backupConfiguration: BackupConfiguration = { ... }
Name | Type | Description |
---|---|---|
organizationName |
string |
The name of the Azure DevOps organization. |
projectName |
string |
The name of the Azure DevOps project. |
repositoryNames |
string[] |
The names of the git repositories to backup. |
secretArn |
string |
ARN of the secret containing the token for accessing the git repositories of the Azure DevOps organization. |
schedule |
aws-cdk-lib.aws_events.Schedule |
The schedule allows to define the frequency of backups. |
public readonly organizationName: string;
- Type: string
The name of the Azure DevOps organization.
public readonly projectName: string;
- Type: string
The name of the Azure DevOps project.
public readonly repositoryNames: string[];
- Type: string[]
The names of the git repositories to backup.
public readonly secretArn: string;
- Type: string
ARN of the secret containing the token for accessing the git repositories of the Azure DevOps organization.
public readonly schedule: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
- Default: Schedule.expression('cron(0 0 ? * 1 *)')
The schedule allows to define the frequency of backups.
If not defined, a weekly backup is configured.