Package hudson.plugins.ec2
Class AmazonEC2Cloud
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- hudson.plugins.ec2.EC2Cloud
-
- hudson.plugins.ec2.AmazonEC2Cloud
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
public class AmazonEC2Cloud extends EC2Cloud
The original implementation ofEC2Cloud
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AmazonEC2Cloud.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.plugins.ec2.EC2Cloud
EC2Cloud.EC2ConnectionUpdater
-
Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Field Summary
-
Fields inherited from class hudson.plugins.ec2.EC2Cloud
AWS_CN_URL_HOST, AWS_URL_HOST, DEFAULT_EC2_ENDPOINT, DEFAULT_EC2_HOST, EC2_REQUEST_EXPIRED_ERROR_CODE, EC2_SLAVE_TYPE_DEMAND, EC2_SLAVE_TYPE_SPOT
-
-
Constructor Summary
Constructors Constructor Description AmazonEC2Cloud(String name, boolean useInstanceProfileForCredentials, String credentialsId, String region, String privateKey, String sshKeysCredentialsId, String instanceCapStr, List<? extends SlaveTemplate> templates, String roleArn, String roleSessionName)
AmazonEC2Cloud(String name, boolean useInstanceProfileForCredentials, String credentialsId, String region, String privateKey, String instanceCapStr, List<? extends SlaveTemplate> templates, String roleArn, String roleSessionName)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.amazonaws.auth.AWSCredentialsProvider
createCredentialsProvider()
String
getAltEC2Endpoint()
String
getCloudName()
Deprecated.Use public field "name" instead.URL
getEc2EndpointUrl()
static URL
getEc2EndpointUrl(String region)
String
getRegion()
URL
getS3EndpointUrl()
boolean
isNoDelayProvisioning()
void
setAltEC2Endpoint(String altEC2Endpoint)
void
setNoDelayProvisioning(boolean noDelayProvisioning)
-
Methods inherited from class hudson.plugins.ec2.EC2Cloud
addTemplate, buildPresignedURL, canProvision, checkEndPoint, connect, convertHostName, convertPort, createClientConfiguration, createCredentialsProvider, createCredentialsProvider, doAttach, doProvision, getAwsPartitionHostForService, getCredentialsId, getInstanceCap, getInstanceCapStr, getKeyPair, getPrivateKey, getRoleArn, getRoleSessionName, getSlaveTypeTagValue, getSshKeysCredentialsId, getTemplate, getTemplate, getTemplates, getTemplates, isUseInstanceProfileForCredentials, log, log, provision, provision, readResolve, resolvePrivateKey
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getDescriptor, getDisplayName, getIcon, getIconAltText, getIconClassName, getSearchUrl, getUrl, provision, reconfigure, registerPermissions
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
AmazonEC2Cloud
@DataBoundConstructor public AmazonEC2Cloud(String name, boolean useInstanceProfileForCredentials, String credentialsId, String region, String privateKey, String sshKeysCredentialsId, String instanceCapStr, List<? extends SlaveTemplate> templates, String roleArn, String roleSessionName)
-
AmazonEC2Cloud
@Deprecated public AmazonEC2Cloud(String name, boolean useInstanceProfileForCredentials, String credentialsId, String region, String privateKey, String instanceCapStr, List<? extends SlaveTemplate> templates, String roleArn, String roleSessionName)
Deprecated.
-
-
Method Detail
-
getCloudName
@Deprecated public String getCloudName()
Deprecated.Use public field "name" instead.
-
getRegion
public String getRegion()
-
getEc2EndpointUrl
public URL getEc2EndpointUrl()
- Specified by:
getEc2EndpointUrl
in classEC2Cloud
-
getS3EndpointUrl
public URL getS3EndpointUrl()
- Specified by:
getS3EndpointUrl
in classEC2Cloud
-
isNoDelayProvisioning
public boolean isNoDelayProvisioning()
-
setNoDelayProvisioning
@DataBoundSetter public void setNoDelayProvisioning(boolean noDelayProvisioning)
-
getAltEC2Endpoint
public String getAltEC2Endpoint()
-
setAltEC2Endpoint
@DataBoundSetter public void setAltEC2Endpoint(String altEC2Endpoint)
-
createCredentialsProvider
protected com.amazonaws.auth.AWSCredentialsProvider createCredentialsProvider()
- Overrides:
createCredentialsProvider
in classEC2Cloud
-
-