Package hudson.plugins.ec2
Class EC2Cloud.DescriptorImpl
- Enclosing class:
- EC2Cloud
@Extension
@Symbol("amazonEC2")
public static class EC2Cloud.DescriptorImpl
extends Descriptor<Cloud>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckAltEC2Endpoint
(String value) doCheckCloudName
(String value) doCheckRoleSessionName
(String roleArn, String roleSessionName) doCheckSshKeysCredentialsId
(ItemGroup context, String value) doCheckUseInstanceProfileForCredentials
(boolean value) doFillCredentialsIdItems
(ItemGroup context) doFillRegionItems
(String altEC2Endpoint, boolean useInstanceProfileForCredentials, String credentialsId) doFillSshKeysCredentialsIdItems
(ItemGroup context, String sshKeysCredentialsId) doTestConnection
(ItemGroup context, String region, String altEC2Endpoint, boolean useInstanceProfileForCredentials, String credentialsId, String sshKeysCredentialsId, String roleArn, String roleSessionName) Tests the connection settings.software.amazon.awssdk.services.ec2.model.InstanceType[]
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<Cloud>
-
getInstanceTypes
public software.amazon.awssdk.services.ec2.model.InstanceType[] getInstanceTypes() -
doCheckUseInstanceProfileForCredentials
-
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
-
doCheckCloudName
-
doCheckAltEC2Endpoint
-
doFillRegionItems
public ListBoxModel doFillRegionItems(@QueryParameter String altEC2Endpoint, @QueryParameter boolean useInstanceProfileForCredentials, @QueryParameter String credentialsId) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-