/** * Construct a synchronous implementation of AWSOpsWorks using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AWSOpsWorks. */ @Override protected AWSOpsWorks build(AwsSyncClientParams params) { return new AWSOpsWorksClient(params); }
/** * <p> * Describes the operating systems that are supported by AWS OpsWorks Stacks. * </p> * * @param describeOperatingSystemsRequest * @return Result of the DescribeOperatingSystems operation returned by the service. * @sample AWSOpsWorks.DescribeOperatingSystems * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeOperatingSystems" * target="_top">AWS API Documentation</a> */ @Override public DescribeOperatingSystemsResult describeOperatingSystems(DescribeOperatingSystemsRequest request) { request = beforeClientExecution(request); return executeDescribeOperatingSystems(request); }
/** * <p> * Returns a list of tags that are applied to the specified stack or layer. * </p> * * @param listTagsRequest * @return Result of the ListTags operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.ListTags * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ListTags" target="_top">AWS API * Documentation</a> */ @Override public ListTagsResult listTags(ListTagsRequest request) { request = beforeClientExecution(request); return executeListTags(request); }
/** * <p> * Removes tags from a specified stack or layer. * </p> * * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.UntagResource * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UntagResource" target="_top">AWS API * Documentation</a> */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); }
@SdkInternalApi final CloneStackResult executeCloneStack(CloneStackRequest cloneStackRequest) { ExecutionContext executionContext = createExecutionContext(cloneStackRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request<CloneStackRequest> request = null; Response<CloneStackResult> response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CloneStackRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cloneStackRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "OpsWorks"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CloneStack"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler<AmazonWebServiceResponse<CloneStackResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new CloneStackResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } }
@After public void tearDown() throws InterruptedException { AWSTestUtils.emptyAndDeleteBucket(s3Client, BUCKET_NAME); client.deleteApp(new DeleteAppRequest().withAppId(project .getProperty(Constants.APP_ID_PROPERTY))); stopAllInstances(project, client); deleteAllInstances(project, client); deleteAllLayers(project, client); client.deleteStack(new DeleteStackRequest().withStackId(project .getProperty(Constants.STACK_ID_PROPERTY))); }
List<Deployment> deployments = client.describeDeployments( new DescribeDeploymentsRequest() .withDeploymentIds(deploymentIds))
/** * <p> * Describes the available AWS OpsWorks Stacks agent versions. You must specify a stack ID or a configuration * manager. <code>DescribeAgentVersions</code> returns a list of available agent versions for the specified stack or * configuration manager. * </p> * * @param describeAgentVersionsRequest * @return Result of the DescribeAgentVersions operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.DescribeAgentVersions * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions" target="_top">AWS * API Documentation</a> */ @Override public DescribeAgentVersionsResult describeAgentVersions(DescribeAgentVersionsRequest request) { request = beforeClientExecution(request); return executeDescribeAgentVersions(request); }
/** * <p> * Apply cost-allocation tags to a specified stack or layer in AWS OpsWorks Stacks. For more information about how * tagging works, see <a href="http://docs.aws.amazon.com/opsworks/latest/userguide/tagging.html">Tags</a> in the * AWS OpsWorks User Guide. * </p> * * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.TagResource * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/TagResource" target="_top">AWS API * Documentation</a> */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); }
/** * <p> * Describes a user's SSH information. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have self-management enabled or an attached * policy that explicitly grants permissions. For more information about user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param describeMyUserProfileRequest * @return Result of the DescribeMyUserProfile operation returned by the service. * @sample AWSOpsWorks.DescribeMyUserProfile * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeMyUserProfile" target="_top">AWS * API Documentation</a> */ @Override public DescribeMyUserProfileResult describeMyUserProfile(DescribeMyUserProfileRequest request) { request = beforeClientExecution(request); return executeDescribeMyUserProfile(request); }
/** * <p> * Creates a new user profile. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have an attached policy that explicitly grants * permissions. For more information about user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param createUserProfileRequest * @return Result of the CreateUserProfile operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @sample AWSOpsWorks.CreateUserProfile * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateUserProfile" target="_top">AWS API * Documentation</a> */ @Override public CreateUserProfileResult createUserProfile(CreateUserProfileRequest request) { request = beforeClientExecution(request); return executeCreateUserProfile(request); }
/** * <p> * Detaches a specified Elastic Load Balancing instance from its layer. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack, * or an attached policy that explicitly grants permissions. For more information on user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param detachElasticLoadBalancerRequest * @return Result of the DetachElasticLoadBalancer operation returned by the service. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.DetachElasticLoadBalancer * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DetachElasticLoadBalancer" * target="_top">AWS API Documentation</a> */ @Override public DetachElasticLoadBalancerResult detachElasticLoadBalancer(DetachElasticLoadBalancerRequest request) { request = beforeClientExecution(request); return executeDetachElasticLoadBalancer(request); }
/** * <p> * Updates a user's SSH public key. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have self-management enabled or an attached * policy that explicitly grants permissions. For more information about user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param updateMyUserProfileRequest * @return Result of the UpdateMyUserProfile operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @sample AWSOpsWorks.UpdateMyUserProfile * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateMyUserProfile" target="_top">AWS * API Documentation</a> */ @Override public UpdateMyUserProfileResult updateMyUserProfile(UpdateMyUserProfileRequest request) { request = beforeClientExecution(request); return executeUpdateMyUserProfile(request); }
/** * <note> * <p> * This action can be used only with Windows stacks. * </p> * </note> * <p> * Grants RDP access to a Windows instance for a specified time period. * </p> * * @param grantAccessRequest * @return Result of the GrantAccess operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.GrantAccess * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GrantAccess" target="_top">AWS API * Documentation</a> */ @Override public GrantAccessResult grantAccess(GrantAccessRequest request) { request = beforeClientExecution(request); return executeGrantAccess(request); }
/** * <p> * Updates a specified layer. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack, * or an attached policy that explicitly grants permissions. For more information on user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param updateLayerRequest * @return Result of the UpdateLayer operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.UpdateLayer * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateLayer" target="_top">AWS API * Documentation</a> */ @Override public UpdateLayerResult updateLayer(UpdateLayerRequest request) { request = beforeClientExecution(request); return executeUpdateLayer(request); }
/** * <p> * Creates a new stack. For more information, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html">Create a New Stack</a>. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have an attached policy that explicitly grants * permissions. For more information about user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param createStackRequest * @return Result of the CreateStack operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @sample AWSOpsWorks.CreateStack * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateStack" target="_top">AWS API * Documentation</a> */ @Override public CreateStackResult createStack(CreateStackRequest request) { request = beforeClientExecution(request); return executeCreateStack(request); }
/** * <p> * Deletes a specified app. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack, * or an attached policy that explicitly grants permissions. For more information on user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param deleteAppRequest * @return Result of the DeleteApp operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.DeleteApp * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteApp" target="_top">AWS API * Documentation</a> */ @Override public DeleteAppResult deleteApp(DeleteAppRequest request) { request = beforeClientExecution(request); return executeDeleteApp(request); }
/** * <p> * Describe specified users. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have an attached policy that explicitly grants * permissions. For more information about user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param describeUserProfilesRequest * @return Result of the DescribeUserProfiles operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.DescribeUserProfiles * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeUserProfiles" target="_top">AWS * API Documentation</a> */ @Override public DescribeUserProfilesResult describeUserProfiles(DescribeUserProfilesRequest request) { request = beforeClientExecution(request); return executeDescribeUserProfiles(request); }
/** * <p> * Stops a specified stack. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack, * or an attached policy that explicitly grants permissions. For more information on user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param stopStackRequest * @return Result of the StopStack operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.StopStack * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopStack" target="_top">AWS API * Documentation</a> */ @Override public StopStackResult stopStack(StopStackRequest request) { request = beforeClientExecution(request); return executeStopStack(request); }
/** * <p> * Updates a specified app. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Deploy or Manage permissions level for * the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, * see <a href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param updateAppRequest * @return Result of the UpdateApp operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.UpdateApp * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateApp" target="_top">AWS API * Documentation</a> */ @Override public UpdateAppResult updateApp(UpdateAppRequest request) { request = beforeClientExecution(request); return executeUpdateApp(request); }