Package hudson.plugins.ec2
Class EC2Cloud.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<Cloud>
-
- hudson.plugins.ec2.EC2Cloud.DescriptorImpl
-
- Direct Known Subclasses:
AmazonEC2Cloud.DescriptorImpl
,Eucalyptus.DescriptorImpl
- Enclosing class:
- EC2Cloud
public abstract 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 Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckSshKeysCredentialsId(ItemGroup context, String value)
FormValidation
doCheckUseInstanceProfileForCredentials(boolean value)
ListBoxModel
doFillCredentialsIdItems(ItemGroup context)
ListBoxModel
doFillSshKeysCredentialsIdItems(ItemGroup context, String sshKeysCredentialsId)
protected FormValidation
doTestConnection(ItemGroup context, URL ec2endpoint, boolean useInstanceProfileForCredentials, String credentialsId, String sshKeysCredentialsId, String roleArn, String roleSessionName, String region)
Tests the connection settings.com.amazonaws.services.ec2.model.InstanceType[]
getInstanceTypes()
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getInstanceTypes
public com.amazonaws.services.ec2.model.InstanceType[] getInstanceTypes()
-
doCheckUseInstanceProfileForCredentials
@POST public FormValidation doCheckUseInstanceProfileForCredentials(@QueryParameter boolean value)
-
doFillSshKeysCredentialsIdItems
@POST public ListBoxModel doFillSshKeysCredentialsIdItems(@AncestorInPath ItemGroup context, @QueryParameter String sshKeysCredentialsId)
-
doCheckSshKeysCredentialsId
public FormValidation doCheckSshKeysCredentialsId(@AncestorInPath ItemGroup context, @QueryParameter String value) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
doTestConnection
@POST protected FormValidation doTestConnection(@AncestorInPath ItemGroup context, URL ec2endpoint, boolean useInstanceProfileForCredentials, String credentialsId, String sshKeysCredentialsId, String roleArn, String roleSessionName, String region) throws IOException, javax.servlet.ServletException
Tests the connection settings. Overriding needs to@RequirePOST
- Parameters:
ec2endpoint
-useInstanceProfileForCredentials
-credentialsId
-sshKeysCredentialsId
-roleArn
-roleSessionName
-region
-- Returns:
- the validation result
- Throws:
IOException
javax.servlet.ServletException
-
doFillCredentialsIdItems
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath ItemGroup context)
-
-