Documentation
¶
Overview ¶
A GitHub Action that creates a CDK diff for a pull request.
Index ¶
- func CdkDiffIamTemplateGenerator_GenerateDeployCommand(templatePath *string) *string
- func CdkDiffIamTemplateGenerator_GenerateTemplate(props *CdkDiffIamTemplateGeneratorProps) *string
- func CdkDiffIamTemplateStackSetGenerator_GenerateCommands(props *CdkDiffIamTemplateStackSetCommandsProps) *map[string]*string
- func CdkDiffIamTemplateStackSetGenerator_GenerateTemplate(props *CdkDiffIamTemplateStackSetGeneratorProps) *string
- func CdkDriftIamTemplateGenerator_GenerateDeployCommand(templatePath *string) *string
- func CdkDriftIamTemplateGenerator_GenerateTemplate(props *CdkDriftIamTemplateGeneratorProps) *string
- func NewCdkDiffIamTemplateGenerator_Override(c CdkDiffIamTemplateGenerator)
- func NewCdkDiffIamTemplateStackSetGenerator_Override(c CdkDiffIamTemplateStackSetGenerator)
- func NewCdkDiffIamTemplateStackSet_Override(c CdkDiffIamTemplateStackSet, props *CdkDiffIamTemplateStackSetProps)
- func NewCdkDiffIamTemplate_Override(c CdkDiffIamTemplate, props *CdkDiffIamTemplateProps)
- func NewCdkDiffStackWorkflow_Override(c CdkDiffStackWorkflow, props *CdkDiffStackWorkflowProps)
- func NewCdkDriftDetectionWorkflow_Override(c CdkDriftDetectionWorkflow, props *CdkDriftDetectionWorkflowProps)
- func NewCdkDriftIamTemplateGenerator_Override(c CdkDriftIamTemplateGenerator)
- func NewCdkDriftIamTemplate_Override(c CdkDriftIamTemplate, props *CdkDriftIamTemplateProps)
- type CdkDiffIamTemplate
- type CdkDiffIamTemplateGenerator
- type CdkDiffIamTemplateGeneratorProps
- type CdkDiffIamTemplateProps
- type CdkDiffIamTemplateStackSet
- type CdkDiffIamTemplateStackSetCommandsProps
- type CdkDiffIamTemplateStackSetGenerator
- type CdkDiffIamTemplateStackSetGeneratorProps
- type CdkDiffIamTemplateStackSetProps
- type CdkDiffStack
- type CdkDiffStackWorkflow
- type CdkDiffStackWorkflowProps
- type CdkDriftDetectionWorkflow
- type CdkDriftDetectionWorkflowProps
- type CdkDriftIamTemplate
- type CdkDriftIamTemplateGenerator
- type CdkDriftIamTemplateGeneratorProps
- type CdkDriftIamTemplateProps
- type GitHubOidcConfig
- type Stack
- type StackSetAutoDeployment
- type StackSetRoleSelection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CdkDiffIamTemplateGenerator_GenerateDeployCommand ¶
Generate the AWS CLI deploy command for the IAM template. Experimental.
func CdkDiffIamTemplateGenerator_GenerateTemplate ¶
func CdkDiffIamTemplateGenerator_GenerateTemplate(props *CdkDiffIamTemplateGeneratorProps) *string
Generate the CloudFormation IAM template as a YAML string. Experimental.
func CdkDiffIamTemplateStackSetGenerator_GenerateCommands ¶
func CdkDiffIamTemplateStackSetGenerator_GenerateCommands(props *CdkDiffIamTemplateStackSetCommandsProps) *map[string]*string
Generate AWS CLI commands for StackSet operations.
Returns a map of command names to shell commands. Experimental.
func CdkDiffIamTemplateStackSetGenerator_GenerateTemplate ¶
func CdkDiffIamTemplateStackSetGenerator_GenerateTemplate(props *CdkDiffIamTemplateStackSetGeneratorProps) *string
Generate the CloudFormation StackSet template as a YAML string. Experimental.
func CdkDriftIamTemplateGenerator_GenerateDeployCommand ¶
Generate the AWS CLI deploy command for the IAM template. Experimental.
func CdkDriftIamTemplateGenerator_GenerateTemplate ¶
func CdkDriftIamTemplateGenerator_GenerateTemplate(props *CdkDriftIamTemplateGeneratorProps) *string
Generate the CloudFormation IAM template as a YAML string. Experimental.
func NewCdkDiffIamTemplateGenerator_Override ¶
func NewCdkDiffIamTemplateGenerator_Override(c CdkDiffIamTemplateGenerator)
Experimental.
func NewCdkDiffIamTemplateStackSetGenerator_Override ¶
func NewCdkDiffIamTemplateStackSetGenerator_Override(c CdkDiffIamTemplateStackSetGenerator)
Experimental.
func NewCdkDiffIamTemplateStackSet_Override ¶
func NewCdkDiffIamTemplateStackSet_Override(c CdkDiffIamTemplateStackSet, props *CdkDiffIamTemplateStackSetProps)
Experimental.
func NewCdkDiffIamTemplate_Override ¶
func NewCdkDiffIamTemplate_Override(c CdkDiffIamTemplate, props *CdkDiffIamTemplateProps)
Experimental.
func NewCdkDiffStackWorkflow_Override ¶
func NewCdkDiffStackWorkflow_Override(c CdkDiffStackWorkflow, props *CdkDiffStackWorkflowProps)
Experimental.
func NewCdkDriftDetectionWorkflow_Override ¶
func NewCdkDriftDetectionWorkflow_Override(c CdkDriftDetectionWorkflow, props *CdkDriftDetectionWorkflowProps)
Experimental.
func NewCdkDriftIamTemplateGenerator_Override ¶
func NewCdkDriftIamTemplateGenerator_Override(c CdkDriftIamTemplateGenerator)
Experimental.
func NewCdkDriftIamTemplate_Override ¶
func NewCdkDriftIamTemplate_Override(c CdkDriftIamTemplate, props *CdkDriftIamTemplateProps)
Experimental.
Types ¶
type CdkDiffIamTemplate ¶
type CdkDiffIamTemplate interface {
}
Projen construct that emits a CloudFormation template with minimal IAM permissions for the CDK Diff Stack Workflow.
For non-Projen projects, use `CdkDiffIamTemplateGenerator` directly. Experimental.
func NewCdkDiffIamTemplate ¶
func NewCdkDiffIamTemplate(props *CdkDiffIamTemplateProps) CdkDiffIamTemplate
Experimental.
type CdkDiffIamTemplateGenerator ¶
type CdkDiffIamTemplateGenerator interface {
}
Pure generator class for CDK Diff IAM templates.
No Projen dependency - can be used in any project. Experimental.
func NewCdkDiffIamTemplateGenerator ¶
func NewCdkDiffIamTemplateGenerator() CdkDiffIamTemplateGenerator
Experimental.
type CdkDiffIamTemplateGeneratorProps ¶
type CdkDiffIamTemplateGeneratorProps struct {
// Name for the changeset IAM role.
// Experimental.
RoleName *string `field:"required" json:"roleName" yaml:"roleName"`
// Create a GitHub OIDC role within this template instead of using an existing one.
//
// When true, githubOidc configuration is required and oidcRoleArn is ignored.
// Default: false.
// Experimental.
CreateOidcRole *bool `field:"optional" json:"createOidcRole" yaml:"createOidcRole"`
// GitHub OIDC configuration for repo/branch restrictions.
//
// Required when createOidcRole is true.
// Experimental.
GithubOidc *GitHubOidcConfig `field:"optional" json:"githubOidc" yaml:"githubOidc"`
// Region for the OIDC trust condition.
//
// Only used when oidcRoleArn is provided (external OIDC role).
// Experimental.
OidcRegion *string `field:"optional" json:"oidcRegion" yaml:"oidcRegion"`
// ARN of the existing GitHub OIDC role that can assume this changeset role.
//
// Required when createOidcRole is false or undefined.
// Experimental.
OidcRoleArn *string `field:"optional" json:"oidcRoleArn" yaml:"oidcRoleArn"`
// Name of the GitHub OIDC role to create.
//
// Only used when createOidcRole is true.
// Default: 'GitHubOIDCRole'.
// Experimental.
OidcRoleName *string `field:"optional" json:"oidcRoleName" yaml:"oidcRoleName"`
// Skip creating the OIDC provider (use existing one).
//
// Set to true if the account already has a GitHub OIDC provider.
// Only used when createOidcRole is true.
// Default: false.
// Experimental.
SkipOidcProviderCreation *bool `field:"optional" json:"skipOidcProviderCreation" yaml:"skipOidcProviderCreation"`
}
Props for generating CDK Diff IAM templates (no Projen dependency). Experimental.
type CdkDiffIamTemplateProps ¶
type CdkDiffIamTemplateProps struct {
// Name for the changeset IAM role.
// Experimental.
RoleName *string `field:"required" json:"roleName" yaml:"roleName"`
// Create a GitHub OIDC role within this template instead of using an existing one.
//
// When true, githubOidc configuration is required and oidcRoleArn is ignored.
// Default: false.
// Experimental.
CreateOidcRole *bool `field:"optional" json:"createOidcRole" yaml:"createOidcRole"`
// GitHub OIDC configuration for repo/branch restrictions.
//
// Required when createOidcRole is true.
// Experimental.
GithubOidc *GitHubOidcConfig `field:"optional" json:"githubOidc" yaml:"githubOidc"`
// Region for the OIDC trust condition.
//
// Only used when oidcRoleArn is provided (external OIDC role).
// Experimental.
OidcRegion *string `field:"optional" json:"oidcRegion" yaml:"oidcRegion"`
// ARN of the existing GitHub OIDC role that can assume this changeset role.
//
// Required when createOidcRole is false or undefined.
// Experimental.
OidcRoleArn *string `field:"optional" json:"oidcRoleArn" yaml:"oidcRoleArn"`
// Name of the GitHub OIDC role to create.
//
// Only used when createOidcRole is true.
// Default: 'GitHubOIDCRole'.
// Experimental.
OidcRoleName *string `field:"optional" json:"oidcRoleName" yaml:"oidcRoleName"`
// Skip creating the OIDC provider (use existing one).
//
// Set to true if the account already has a GitHub OIDC provider.
// Only used when createOidcRole is true.
// Default: false.
// Experimental.
SkipOidcProviderCreation *bool `field:"optional" json:"skipOidcProviderCreation" yaml:"skipOidcProviderCreation"`
// Projen project instance.
// Experimental.
Project interface{} `field:"required" json:"project" yaml:"project"`
// Output path for the template file (default: 'cdk-diff-workflow-iam-template.yaml').
// Experimental.
OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"`
}
Props for the Projen-integrated CDK Diff IAM template construct. Experimental.
type CdkDiffIamTemplateStackSet ¶
type CdkDiffIamTemplateStackSet interface {
}
Projen construct that creates a CloudFormation StackSet template for org-wide deployment of GitHub OIDC provider, OIDC role, and CDK Diff/Drift IAM roles.
This provides a self-contained per-account deployment with no role chaining required.
For non-Projen projects, use `CdkDiffIamTemplateStackSetGenerator` directly. Experimental.
func NewCdkDiffIamTemplateStackSet ¶
func NewCdkDiffIamTemplateStackSet(props *CdkDiffIamTemplateStackSetProps) CdkDiffIamTemplateStackSet
Experimental.
type CdkDiffIamTemplateStackSetCommandsProps ¶
type CdkDiffIamTemplateStackSetCommandsProps struct {
// Auto-deployment configuration.
// Experimental.
AutoDeployment *StackSetAutoDeployment `field:"optional" json:"autoDeployment" yaml:"autoDeployment"`
// Whether to use delegated admin mode for StackSet operations.
//
// If true, adds --call-as DELEGATED_ADMIN to commands.
// Default: true.
// Experimental.
DelegatedAdmin *bool `field:"optional" json:"delegatedAdmin" yaml:"delegatedAdmin"`
// Target regions for deployment (e.g., ['us-east-1', 'eu-west-1']).
// Experimental.
Regions *[]*string `field:"optional" json:"regions" yaml:"regions"`
// Name of the StackSet (default: 'cdk-diff-workflow-iam-stackset').
// Experimental.
StackSetName *string `field:"optional" json:"stackSetName" yaml:"stackSetName"`
// Target OUs for deployment (e.g., ['ou-xxxx-xxxxxxxx', 'r-xxxx']).
// Experimental.
TargetOrganizationalUnitIds *[]*string `field:"optional" json:"targetOrganizationalUnitIds" yaml:"targetOrganizationalUnitIds"`
// Path to the template file (default: 'cdk-diff-workflow-stackset-template.yaml').
// Experimental.
TemplatePath *string `field:"optional" json:"templatePath" yaml:"templatePath"`
}
Props for generating StackSet CLI commands (no Projen dependency). Experimental.
type CdkDiffIamTemplateStackSetGenerator ¶
type CdkDiffIamTemplateStackSetGenerator interface {
}
Pure generator class for StackSet templates and commands.
No Projen dependency - can be used in any project. Experimental.
func NewCdkDiffIamTemplateStackSetGenerator ¶
func NewCdkDiffIamTemplateStackSetGenerator() CdkDiffIamTemplateStackSetGenerator
Experimental.
type CdkDiffIamTemplateStackSetGeneratorProps ¶
type CdkDiffIamTemplateStackSetGeneratorProps struct {
// GitHub OIDC configuration for repo/branch restrictions.
// Experimental.
GithubOidc *GitHubOidcConfig `field:"required" json:"githubOidc" yaml:"githubOidc"`
// Name of the CdkChangesetRole (default: 'CdkChangesetRole').
// Experimental.
ChangesetRoleName *string `field:"optional" json:"changesetRoleName" yaml:"changesetRoleName"`
// Description for the StackSet.
// Experimental.
Description *string `field:"optional" json:"description" yaml:"description"`
// Name of the CdkDriftRole (default: 'CdkDriftRole').
// Experimental.
DriftRoleName *string `field:"optional" json:"driftRoleName" yaml:"driftRoleName"`
// Name of the GitHub OIDC role (default: 'GitHubOIDCRole').
// Experimental.
OidcRoleName *string `field:"optional" json:"oidcRoleName" yaml:"oidcRoleName"`
// Which roles to include (default: BOTH).
// Experimental.
RoleSelection StackSetRoleSelection `field:"optional" json:"roleSelection" yaml:"roleSelection"`
// Skip creating the OIDC provider (use existing one).
//
// Set to true if accounts already have a GitHub OIDC provider.
// The template will reference the existing provider by ARN.
// Default: false.
// Experimental.
SkipOidcProviderCreation *bool `field:"optional" json:"skipOidcProviderCreation" yaml:"skipOidcProviderCreation"`
}
Props for generating StackSet templates (no Projen dependency). Experimental.
type CdkDiffIamTemplateStackSetProps ¶
type CdkDiffIamTemplateStackSetProps struct {
// GitHub OIDC configuration for repo/branch restrictions.
// Experimental.
GithubOidc *GitHubOidcConfig `field:"required" json:"githubOidc" yaml:"githubOidc"`
// Name of the CdkChangesetRole (default: 'CdkChangesetRole').
// Experimental.
ChangesetRoleName *string `field:"optional" json:"changesetRoleName" yaml:"changesetRoleName"`
// Description for the StackSet.
// Experimental.
Description *string `field:"optional" json:"description" yaml:"description"`
// Name of the CdkDriftRole (default: 'CdkDriftRole').
// Experimental.
DriftRoleName *string `field:"optional" json:"driftRoleName" yaml:"driftRoleName"`
// Name of the GitHub OIDC role (default: 'GitHubOIDCRole').
// Experimental.
OidcRoleName *string `field:"optional" json:"oidcRoleName" yaml:"oidcRoleName"`
// Which roles to include (default: BOTH).
// Experimental.
RoleSelection StackSetRoleSelection `field:"optional" json:"roleSelection" yaml:"roleSelection"`
// Skip creating the OIDC provider (use existing one).
//
// Set to true if accounts already have a GitHub OIDC provider.
// The template will reference the existing provider by ARN.
// Default: false.
// Experimental.
SkipOidcProviderCreation *bool `field:"optional" json:"skipOidcProviderCreation" yaml:"skipOidcProviderCreation"`
// Projen project instance.
// Experimental.
Project interface{} `field:"required" json:"project" yaml:"project"`
// Auto-deployment configuration.
// Experimental.
AutoDeployment *StackSetAutoDeployment `field:"optional" json:"autoDeployment" yaml:"autoDeployment"`
// Whether to use delegated admin mode for StackSet operations.
//
// If true, adds --call-as DELEGATED_ADMIN to commands.
// If false, assumes running from the management account.
// Default: true.
// Experimental.
DelegatedAdmin *bool `field:"optional" json:"delegatedAdmin" yaml:"delegatedAdmin"`
// Output path for the template file (default: 'cdk-diff-workflow-stackset-template.yaml').
// Experimental.
OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"`
// Target regions for deployment (e.g., ['us-east-1', 'eu-west-1']).
// Experimental.
Regions *[]*string `field:"optional" json:"regions" yaml:"regions"`
// Name of the StackSet (default: 'cdk-diff-workflow-iam-stackset').
// Experimental.
StackSetName *string `field:"optional" json:"stackSetName" yaml:"stackSetName"`
// Target OUs for deployment (e.g., ['ou-xxxx-xxxxxxxx', 'r-xxxx']).
// Experimental.
TargetOrganizationalUnitIds *[]*string `field:"optional" json:"targetOrganizationalUnitIds" yaml:"targetOrganizationalUnitIds"`
}
Props for the Projen-integrated StackSet construct. Experimental.
type CdkDiffStack ¶
type CdkDiffStack struct {
// Experimental.
ChangesetRoleToAssumeArn *string `field:"required" json:"changesetRoleToAssumeArn" yaml:"changesetRoleToAssumeArn"`
// Experimental.
ChangesetRoleToAssumeRegion *string `field:"required" json:"changesetRoleToAssumeRegion" yaml:"changesetRoleToAssumeRegion"`
// Experimental.
StackName *string `field:"required" json:"stackName" yaml:"stackName"`
// Experimental.
OidcRegion *string `field:"optional" json:"oidcRegion" yaml:"oidcRegion"`
// Experimental.
OidcRoleArn *string `field:"optional" json:"oidcRoleArn" yaml:"oidcRoleArn"`
}
Experimental.
type CdkDiffStackWorkflow ¶
type CdkDiffStackWorkflow interface {
}
Experimental.
func NewCdkDiffStackWorkflow ¶
func NewCdkDiffStackWorkflow(props *CdkDiffStackWorkflowProps) CdkDiffStackWorkflow
Experimental.
type CdkDiffStackWorkflowProps ¶
type CdkDiffStackWorkflowProps struct {
// Experimental.
Project interface{} `field:"required" json:"project" yaml:"project"`
// Experimental.
Stacks *[]*CdkDiffStack `field:"required" json:"stacks" yaml:"stacks"`
// Experimental.
CdkYarnCommand *string `field:"optional" json:"cdkYarnCommand" yaml:"cdkYarnCommand"`
// Experimental.
NodeVersion *string `field:"optional" json:"nodeVersion" yaml:"nodeVersion"`
// Experimental.
OidcRegion *string `field:"optional" json:"oidcRegion" yaml:"oidcRegion"`
// Experimental.
OidcRoleArn *string `field:"optional" json:"oidcRoleArn" yaml:"oidcRoleArn"`
// Experimental.
ScriptOutputPath *string `field:"optional" json:"scriptOutputPath" yaml:"scriptOutputPath"`
// Working directory for the CDK app, relative to the repository root.
//
// Useful for monorepos where infrastructure lives in a subdirectory (e.g., 'infra').
//
// When set, all workflow run steps will use `defaults.run.working-directory`
// and script paths will be adjusted to use absolute references.
// Default: - repository root.
//
// Experimental.
WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"`
}
Experimental.
type CdkDriftDetectionWorkflow ¶
type CdkDriftDetectionWorkflow interface {
}
Experimental.
func NewCdkDriftDetectionWorkflow ¶
func NewCdkDriftDetectionWorkflow(props *CdkDriftDetectionWorkflowProps) CdkDriftDetectionWorkflow
Experimental.
type CdkDriftDetectionWorkflowProps ¶
type CdkDriftDetectionWorkflowProps struct {
// Experimental.
Project interface{} `field:"required" json:"project" yaml:"project"`
// Experimental.
Stacks *[]*Stack `field:"required" json:"stacks" yaml:"stacks"`
// Experimental.
CreateIssues *bool `field:"optional" json:"createIssues" yaml:"createIssues"`
// Experimental.
NodeVersion *string `field:"optional" json:"nodeVersion" yaml:"nodeVersion"`
// Experimental.
OidcRegion *string `field:"optional" json:"oidcRegion" yaml:"oidcRegion"`
// Experimental.
OidcRoleArn *string `field:"optional" json:"oidcRoleArn" yaml:"oidcRoleArn"`
// Optional additional GitHub Action steps to run after drift detection for each stack.
//
// These steps run after results are uploaded for each stack. You can include
// any notifications you like (e.g., Slack). Provide explicit inputs (e.g., payload/markdown)
// directly in your step without relying on a pre-generated payload.
// Experimental.
PostGitHubSteps interface{} `field:"optional" json:"postGitHubSteps" yaml:"postGitHubSteps"`
// Experimental.
Schedule *string `field:"optional" json:"schedule" yaml:"schedule"`
// Experimental.
ScriptOutputPath *string `field:"optional" json:"scriptOutputPath" yaml:"scriptOutputPath"`
// Experimental.
WorkflowName *string `field:"optional" json:"workflowName" yaml:"workflowName"`
// Working directory for the CDK app, relative to the repository root.
//
// Useful for monorepos where infrastructure lives in a subdirectory (e.g., 'infra').
//
// When set, all workflow run steps will use `defaults.run.working-directory`
// and artifact/script paths will be adjusted accordingly.
// Default: - repository root.
//
// Experimental.
WorkingDirectory *string `field:"optional" json:"workingDirectory" yaml:"workingDirectory"`
}
Experimental.
type CdkDriftIamTemplate ¶
type CdkDriftIamTemplate interface {
}
Projen construct that emits a CloudFormation template with minimal IAM permissions for the CDK Drift Detection Workflow.
For non-Projen projects, use `CdkDriftIamTemplateGenerator` directly. Experimental.
func NewCdkDriftIamTemplate ¶
func NewCdkDriftIamTemplate(props *CdkDriftIamTemplateProps) CdkDriftIamTemplate
Experimental.
type CdkDriftIamTemplateGenerator ¶
type CdkDriftIamTemplateGenerator interface {
}
Pure generator class for CDK Drift IAM templates.
No Projen dependency - can be used in any project. Experimental.
func NewCdkDriftIamTemplateGenerator ¶
func NewCdkDriftIamTemplateGenerator() CdkDriftIamTemplateGenerator
Experimental.
type CdkDriftIamTemplateGeneratorProps ¶
type CdkDriftIamTemplateGeneratorProps struct {
// Region for the OIDC trust condition.
// Experimental.
OidcRegion *string `field:"required" json:"oidcRegion" yaml:"oidcRegion"`
// ARN of the existing GitHub OIDC role that can assume this drift role.
// Experimental.
OidcRoleArn *string `field:"required" json:"oidcRoleArn" yaml:"oidcRoleArn"`
// Name for the IAM role.
// Experimental.
RoleName *string `field:"required" json:"roleName" yaml:"roleName"`
}
Props for generating CDK Drift IAM templates (no Projen dependency). Experimental.
type CdkDriftIamTemplateProps ¶
type CdkDriftIamTemplateProps struct {
// Region for the OIDC trust condition.
// Experimental.
OidcRegion *string `field:"required" json:"oidcRegion" yaml:"oidcRegion"`
// ARN of the existing GitHub OIDC role that can assume this drift role.
// Experimental.
OidcRoleArn *string `field:"required" json:"oidcRoleArn" yaml:"oidcRoleArn"`
// Name for the IAM role.
// Experimental.
RoleName *string `field:"required" json:"roleName" yaml:"roleName"`
// Projen project instance.
// Experimental.
Project interface{} `field:"required" json:"project" yaml:"project"`
// Output path for the template file (default: 'cdk-drift-workflow-iam-template.yaml').
// Experimental.
OutputPath *string `field:"optional" json:"outputPath" yaml:"outputPath"`
}
Props for the Projen-integrated CDK Drift IAM template construct. Experimental.
type GitHubOidcConfig ¶
type GitHubOidcConfig struct {
// GitHub organization or username (e.g., 'my-org' or 'my-username').
// Experimental.
Owner *string `field:"required" json:"owner" yaml:"owner"`
// Repository names allowed to assume the role (e.g., ['repo1', 'repo2']) Use ['*'] to allow all repos in the organization.
// Experimental.
Repositories *[]*string `field:"required" json:"repositories" yaml:"repositories"`
// Additional subject claims for fine-grained access e.g., ['pull_request', 'environment:production'].
// Experimental.
AdditionalClaims *[]*string `field:"optional" json:"additionalClaims" yaml:"additionalClaims"`
// Branch patterns allowed (e.g., ['main', 'release/*']) Default: ['*'] (all branches).
// Experimental.
Branches *[]*string `field:"optional" json:"branches" yaml:"branches"`
}
GitHub repository restrictions for OIDC authentication. Experimental.
type Stack ¶
type Stack struct {
// Experimental.
DriftDetectionRoleToAssumeArn *string `field:"required" json:"driftDetectionRoleToAssumeArn" yaml:"driftDetectionRoleToAssumeArn"`
// Experimental.
DriftDetectionRoleToAssumeRegion *string `field:"required" json:"driftDetectionRoleToAssumeRegion" yaml:"driftDetectionRoleToAssumeRegion"`
// Experimental.
StackName *string `field:"required" json:"stackName" yaml:"stackName"`
// Experimental.
FailOnDrift *bool `field:"optional" json:"failOnDrift" yaml:"failOnDrift"`
// Experimental.
OidcRegion *string `field:"optional" json:"oidcRegion" yaml:"oidcRegion"`
// Experimental.
OidcRoleArn *string `field:"optional" json:"oidcRoleArn" yaml:"oidcRoleArn"`
}
Experimental.
type StackSetAutoDeployment ¶
type StackSetAutoDeployment struct {
// Enable auto-deployment to new accounts in target OUs (default: true).
// Experimental.
Enabled *bool `field:"optional" json:"enabled" yaml:"enabled"`
// Retain stacks when account leaves OU (default: false).
// Experimental.
RetainStacksOnAccountRemoval *bool `field:"optional" json:"retainStacksOnAccountRemoval" yaml:"retainStacksOnAccountRemoval"`
}
Configuration for StackSet auto-deployment. Experimental.
type StackSetRoleSelection ¶
type StackSetRoleSelection string
Which roles to include in the StackSet. Experimental.
const ( // Include only the changeset role (CdkChangesetRole). // Experimental. StackSetRoleSelection_CHANGESET_ONLY StackSetRoleSelection = "CHANGESET_ONLY" // Include only the drift role (CdkDriftRole). // Experimental. StackSetRoleSelection_DRIFT_ONLY StackSetRoleSelection = "DRIFT_ONLY" // Include both roles (default). // Experimental. StackSetRoleSelection_BOTH StackSetRoleSelection = "BOTH" )
Source Files
¶
- CdkDiffIamTemplate.go
- CdkDiffIamTemplateGenerator.go
- CdkDiffIamTemplateGeneratorProps.go
- CdkDiffIamTemplateGenerator__checks.go
- CdkDiffIamTemplateProps.go
- CdkDiffIamTemplateStackSet.go
- CdkDiffIamTemplateStackSetCommandsProps.go
- CdkDiffIamTemplateStackSetGenerator.go
- CdkDiffIamTemplateStackSetGeneratorProps.go
- CdkDiffIamTemplateStackSetGenerator__checks.go
- CdkDiffIamTemplateStackSetProps.go
- CdkDiffIamTemplateStackSet__checks.go
- CdkDiffIamTemplate__checks.go
- CdkDiffStack.go
- CdkDiffStackWorkflow.go
- CdkDiffStackWorkflowProps.go
- CdkDiffStackWorkflow__checks.go
- CdkDriftDetectionWorkflow.go
- CdkDriftDetectionWorkflowProps.go
- CdkDriftDetectionWorkflow__checks.go
- CdkDriftIamTemplate.go
- CdkDriftIamTemplateGenerator.go
- CdkDriftIamTemplateGeneratorProps.go
- CdkDriftIamTemplateGenerator__checks.go
- CdkDriftIamTemplateProps.go
- CdkDriftIamTemplate__checks.go
- GitHubOidcConfig.go
- Stack.go
- StackSetAutoDeployment.go
- StackSetRoleSelection.go
- main.go