Class IAMExample

java.lang.Object
com.cloudforgeci.api.examples.IAMExample

public class IAMExample extends Object
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 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.