Class EC2Cloud.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<Cloud>
hudson.plugins.ec2.EC2Cloud.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
EC2Cloud

@Extension @Symbol("amazonEC2") public static class EC2Cloud.DescriptorImpl extends Descriptor<Cloud>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<Cloud>
    • getInstanceTypes

      public software.amazon.awssdk.services.ec2.model.InstanceType[] getInstanceTypes()
    • doCheckUseInstanceProfileForCredentials

      @POST public FormValidation doCheckUseInstanceProfileForCredentials(@QueryParameter boolean value)
    • doFillSshKeysCredentialsIdItems

      @POST public ListBoxModel doFillSshKeysCredentialsIdItems(@AncestorInPath ItemGroup context, @QueryParameter String sshKeysCredentialsId)
    • doCheckRoleSessionName

      @NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckRoleSessionName(@QueryParameter String roleArn, @QueryParameter String roleSessionName)
    • doCheckSshKeysCredentialsId

      public FormValidation doCheckSshKeysCredentialsId(@AncestorInPath ItemGroup context, @QueryParameter String value) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doTestConnection

      public FormValidation doTestConnection(@AncestorInPath ItemGroup context, @QueryParameter String region, @QueryParameter String altEC2Endpoint, @QueryParameter boolean useInstanceProfileForCredentials, @QueryParameter String credentialsId, @QueryParameter String sshKeysCredentialsId, @QueryParameter String roleArn, @QueryParameter String roleSessionName) throws IOException, jakarta.servlet.ServletException
      Tests the connection settings.

      Overriding needs to @RequirePOST

      Parameters:
      region -
      useInstanceProfileForCredentials -
      credentialsId -
      sshKeysCredentialsId -
      roleArn -
      roleSessionName -
      Returns:
      the validation result
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doFillCredentialsIdItems

      public ListBoxModel doFillCredentialsIdItems(@AncestorInPath ItemGroup context)
    • doCheckCloudName

      @POST public FormValidation doCheckCloudName(@QueryParameter String value)
    • doCheckAltEC2Endpoint

      @POST public FormValidation doCheckAltEC2Endpoint(@QueryParameter String value)
    • doFillRegionItems

      public ListBoxModel doFillRegionItems(@QueryParameter String altEC2Endpoint, @QueryParameter boolean useInstanceProfileForCredentials, @QueryParameter String credentialsId) throws IOException, jakarta.servlet.ServletException
      Throws:
      IOException
      jakarta.servlet.ServletException