Skip to content

ComplianceEncryptionOptions Struct ​

Keys used by Compliance.encrypt(). Each type of resource uses its own key if set, or key otherwise. Types with neither are left as they are.

Initializer ​

ts
import { ComplianceEncryptionOptions } from '@cloudsnorkel/cdk-github-runners'

const complianceEncryptionOptions: ComplianceEncryptionOptions = { ... }
python
import cloudsnorkel.cdk_github_runners

cloudsnorkel.cdk_github_runners.ComplianceEncryptionOptions(
  images: IKey = None,
  key: IKey = None,
  logs: IKey = None,
  messages: IKey = None,
  secrets: IKey = None,
  storage: IKey = None
)
java
import com.cloudsnorkel.cdk.github.runners.ComplianceEncryptionOptions;

ComplianceEncryptionOptions.builder()
//  .images(IKey)
//  .key(IKey)
//  .logs(IKey)
//  .messages(IKey)
//  .secrets(IKey)
//  .storage(IKey)
    .build();
csharp
using CloudSnorkel;

new ComplianceEncryptionOptions {
    IKey Images = null,
    IKey Key = null,
    IKey Logs = null,
    IKey Messages = null,
    IKey Secrets = null,
    IKey Storage = null
};
go
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"

&cloudsnorkelcdkgithubrunners.ComplianceEncryptionOptions {
	Images: github.com/aws/aws-cdk-go/awscdk/v2.aws_kms.IKey,
	Key: github.com/aws/aws-cdk-go/awscdk/v2.aws_kms.IKey,
	Logs: github.com/aws/aws-cdk-go/awscdk/v2.aws_kms.IKey,
	Messages: github.com/aws/aws-cdk-go/awscdk/v2.aws_kms.IKey,
	Secrets: github.com/aws/aws-cdk-go/awscdk/v2.aws_kms.IKey,
	Storage: github.com/aws/aws-cdk-go/awscdk/v2.aws_kms.IKey,
}

Properties ​

imagesimagesimagesImagesImages ​

images?: IKey

images?: IKey

images?: IKey

Images?: IKey

Images?: IKey

Key for ECR repositories holding runner images, and for AMIs built for EC2 runners.

EC2 runner volumes are encrypted with the key of their AMI.

Adding a key to an existing repository replaces it. The deployment waits for the image to be rebuilt in the new repository before runners use it.

Default: key

keykeykeyKeyKey ​

key?: IKey

key?: IKey

key?: IKey

Key?: IKey

Key?: IKey

Key for every type of resource that doesn't have its own key below.

Default: only types with their own key are encrypted

logslogslogsLogsLogs ​

logs?: IKey

logs?: IKey

logs?: IKey

Logs?: IKey

Logs?: IKey

Key for CloudWatch log groups, including runner logs.

Default: key

messagesmessagesmessagesMessagesMessages ​

messages?: IKey

messages?: IKey

messages?: IKey

Messages?: IKey

Messages?: IKey

Key for the Step Functions state machine, SQS queues, SNS topics and the DynamoDB table used to manage runners.

Default: key

secretssecretssecretsSecretsSecrets ​

secrets?: IKey

secrets?: IKey

secrets?: IKey

Secrets?: IKey

Secrets?: IKey

Key for Secrets Manager secrets holding GitHub credentials.

Default: key

storagestoragestorageStorageStorage ​

storage?: IKey

storage?: IKey

storage?: IKey

Storage?: IKey

Storage?: IKey

Key for runner storage: EBS volumes of ECS instances, Fargate ephemeral storage, CodeBuild build output, and buckets used to build images.

ECS clusters and capacity providers you pass in are not changed.

Default: key

Released under the Apache-2.0 License.