Package com.cloudforgeci.api.examples
Class IAMExample
java.lang.Object
com.cloudforgeci.api.examples.IAMExample
Example demonstrating how to use the IAM Rules system with different permission profiles.
This shows how to create Jenkins deployments with minimal, standard, and extended IAM configurations.
CloudForge 3.0.0: Updated to use ApplicationFactory with JenkinsApplicationSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateWithAutomaticIAM(software.constructs.Construct scope, String id, DeploymentContext cfc) Example of creating Jenkins deployments with automatic IAM profile mapping.static voidcreateWithExplicitIAM(software.constructs.Construct scope, String id, DeploymentContext cfc) Example of creating Jenkins deployments with explicit IAM profile selection.static voiddemonstrateAllFeatures(software.constructs.Construct scope, String id, DeploymentContext cfc) Complete example showing all IAM features.static voiddemonstrateIAMValidation(software.constructs.Construct scope, String id, DeploymentContext cfc) Example demonstrating IAM profile validation and mapping.static voidExample showing permission matrix usage.
-
Constructor Details
-
IAMExample
public IAMExample()
-
-
Method Details
-
createWithAutomaticIAM
public static void createWithAutomaticIAM(software.constructs.Construct scope, String id, DeploymentContext cfc) Example of creating Jenkins deployments with automatic IAM profile mapping. The IAM profile is automatically selected based on the security profile. -
createWithExplicitIAM
public static void createWithExplicitIAM(software.constructs.Construct scope, String id, DeploymentContext cfc) Example of creating Jenkins deployments with explicit IAM profile selection. This allows fine-grained control over permissions while maintaining security validation. -
demonstrateIAMValidation
public static void demonstrateIAMValidation(software.constructs.Construct scope, String id, DeploymentContext cfc) Example demonstrating IAM profile validation and mapping. -
demonstratePermissionMatrix
public static void demonstratePermissionMatrix()Example showing permission matrix usage. -
demonstrateAllFeatures
public static void demonstrateAllFeatures(software.constructs.Construct scope, String id, DeploymentContext cfc) Complete example showing all IAM features.
-