com.amazonaws.services.worklink.AmazonWorkLinkClient Maven / Gradle / Ivy
Show all versions of aws-java-sdk-worklink Show documentation
/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.worklink;
import org.w3c.dom.*;
import java.net.*;
import java.util.*;
import javax.annotation.Generated;
import org.apache.commons.logging.*;
import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;
import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;
import com.amazonaws.services.worklink.AmazonWorkLinkClientBuilder;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.services.worklink.model.*;
import com.amazonaws.services.worklink.model.transform.*;
/**
* Client for accessing WorkLink. All service calls made using this client are blocking, and will not return until the
* service call completes.
*
*
* Amazon WorkLink is a cloud-based service that provides secure access to internal websites and web apps from iOS and
* Android phones. In a single step, your users, such as employees, can access internal websites as efficiently as they
* access any other public website. They enter a URL in their web browser, or choose a link to an internal website in an
* email. Amazon WorkLink authenticates the user's access and securely renders authorized internal web content in a
* secure rendering service in the AWS cloud. Amazon WorkLink doesn't download or store any internal web content on
* mobile devices.
*
*/
@ThreadSafe
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonWorkLinkClient extends AmazonWebServiceClient implements AmazonWorkLink {
/** Provider for AWS credentials. */
private final AWSCredentialsProvider awsCredentialsProvider;
private static final Log log = LogFactory.getLog(AmazonWorkLink.class);
/** Default signing name for the service. */
private static final String DEFAULT_SIGNING_NAME = "worklink";
/** Client configuration factory providing ClientConfigurations tailored to this client */
protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory();
private final AdvancedConfig advancedConfig;
private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory(
new JsonClientMetadata()
.withProtocolVersion("1.1")
.withSupportsCbor(false)
.withSupportsIon(false)
.withContentTypeOverride("application/json")
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InvalidRequestException").withExceptionUnmarshaller(
com.amazonaws.services.worklink.model.transform.InvalidRequestExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller(
com.amazonaws.services.worklink.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("UnauthorizedException").withExceptionUnmarshaller(
com.amazonaws.services.worklink.model.transform.UnauthorizedExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("ResourceAlreadyExistsException").withExceptionUnmarshaller(
com.amazonaws.services.worklink.model.transform.ResourceAlreadyExistsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("TooManyRequestsException").withExceptionUnmarshaller(
com.amazonaws.services.worklink.model.transform.TooManyRequestsExceptionUnmarshaller.getInstance()))
.addErrorMetadata(
new JsonErrorShapeMetadata().withErrorCode("InternalServerErrorException").withExceptionUnmarshaller(
com.amazonaws.services.worklink.model.transform.InternalServerErrorExceptionUnmarshaller.getInstance()))
.withBaseServiceExceptionClass(com.amazonaws.services.worklink.model.AmazonWorkLinkException.class));
public static AmazonWorkLinkClientBuilder builder() {
return AmazonWorkLinkClientBuilder.standard();
}
/**
* Constructs a new client to invoke service methods on WorkLink using the specified parameters.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param clientParams
* Object providing client parameters.
*/
AmazonWorkLinkClient(AwsSyncClientParams clientParams) {
this(clientParams, false);
}
/**
* Constructs a new client to invoke service methods on WorkLink using the specified parameters.
*
*
* All service calls made using this new client object are blocking, and will not return until the service call
* completes.
*
* @param clientParams
* Object providing client parameters.
*/
AmazonWorkLinkClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) {
super(clientParams);
this.awsCredentialsProvider = clientParams.getCredentialsProvider();
this.advancedConfig = clientParams.getAdvancedConfig();
init();
}
private void init() {
setServiceNameIntern(DEFAULT_SIGNING_NAME);
setEndpointPrefix(ENDPOINT_PREFIX);
// calling this.setEndPoint(...) will also modify the signer accordingly
setEndpoint("worklink.us-east-1.amazonaws.com");
HandlerChainFactory chainFactory = new HandlerChainFactory();
requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/worklink/request.handlers"));
requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/worklink/request.handler2s"));
requestHandler2s.addAll(chainFactory.getGlobalHandlers());
}
/**
*
* Specifies a domain to be associated to Amazon WorkLink.
*
*
* @param associateDomainRequest
* @return Result of the AssociateDomain operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws ResourceAlreadyExistsException
* The resource already exists.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.AssociateDomain
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public AssociateDomainResult associateDomain(AssociateDomainRequest request) {
request = beforeClientExecution(request);
return executeAssociateDomain(request);
}
@SdkInternalApi
final AssociateDomainResult executeAssociateDomain(AssociateDomainRequest associateDomainRequest) {
ExecutionContext executionContext = createExecutionContext(associateDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new AssociateDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(associateDomainRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateDomain");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AssociateDomainResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Associates a website authorization provider with a specified fleet. This is used to authorize users against
* associated websites in the company network.
*
*
* @param associateWebsiteAuthorizationProviderRequest
* @return Result of the AssociateWebsiteAuthorizationProvider operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws ResourceAlreadyExistsException
* The resource already exists.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.AssociateWebsiteAuthorizationProvider
* @see AWS API Documentation
*/
@Override
@Deprecated
public AssociateWebsiteAuthorizationProviderResult associateWebsiteAuthorizationProvider(AssociateWebsiteAuthorizationProviderRequest request) {
request = beforeClientExecution(request);
return executeAssociateWebsiteAuthorizationProvider(request);
}
@SdkInternalApi
final AssociateWebsiteAuthorizationProviderResult executeAssociateWebsiteAuthorizationProvider(
AssociateWebsiteAuthorizationProviderRequest associateWebsiteAuthorizationProviderRequest) {
ExecutionContext executionContext = createExecutionContext(associateWebsiteAuthorizationProviderRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new AssociateWebsiteAuthorizationProviderRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(associateWebsiteAuthorizationProviderRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateWebsiteAuthorizationProvider");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new AssociateWebsiteAuthorizationProviderResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Imports the root certificate of a certificate authority (CA) used to obtain TLS certificates used by associated
* websites within the company network.
*
*
* @param associateWebsiteCertificateAuthorityRequest
* @return Result of the AssociateWebsiteCertificateAuthority operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws ResourceAlreadyExistsException
* The resource already exists.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.AssociateWebsiteCertificateAuthority
* @see AWS API Documentation
*/
@Override
@Deprecated
public AssociateWebsiteCertificateAuthorityResult associateWebsiteCertificateAuthority(AssociateWebsiteCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeAssociateWebsiteCertificateAuthority(request);
}
@SdkInternalApi
final AssociateWebsiteCertificateAuthorityResult executeAssociateWebsiteCertificateAuthority(
AssociateWebsiteCertificateAuthorityRequest associateWebsiteCertificateAuthorityRequest) {
ExecutionContext executionContext = createExecutionContext(associateWebsiteCertificateAuthorityRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new AssociateWebsiteCertificateAuthorityRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(associateWebsiteCertificateAuthorityRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateWebsiteCertificateAuthority");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new AssociateWebsiteCertificateAuthorityResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a fleet. A fleet consists of resources and the configuration that delivers associated websites to
* authorized users who download and set up the Amazon WorkLink app.
*
*
* @param createFleetRequest
* @return Result of the CreateFleet operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws ResourceAlreadyExistsException
* The resource already exists.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.CreateFleet
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public CreateFleetResult createFleet(CreateFleetRequest request) {
request = beforeClientExecution(request);
return executeCreateFleet(request);
}
@SdkInternalApi
final CreateFleetResult executeCreateFleet(CreateFleetRequest createFleetRequest) {
ExecutionContext executionContext = createExecutionContext(createFleetRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateFleetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createFleetRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateFleet");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateFleetResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes a fleet. Prevents users from accessing previously associated websites.
*
*
* @param deleteFleetRequest
* @return Result of the DeleteFleet operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DeleteFleet
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public DeleteFleetResult deleteFleet(DeleteFleetRequest request) {
request = beforeClientExecution(request);
return executeDeleteFleet(request);
}
@SdkInternalApi
final DeleteFleetResult executeDeleteFleet(DeleteFleetRequest deleteFleetRequest) {
ExecutionContext executionContext = createExecutionContext(deleteFleetRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteFleetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteFleetRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFleet");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteFleetResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the configuration for delivering audit streams to the customer account.
*
*
* @param describeAuditStreamConfigurationRequest
* @return Result of the DescribeAuditStreamConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeAuditStreamConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public DescribeAuditStreamConfigurationResult describeAuditStreamConfiguration(DescribeAuditStreamConfigurationRequest request) {
request = beforeClientExecution(request);
return executeDescribeAuditStreamConfiguration(request);
}
@SdkInternalApi
final DescribeAuditStreamConfigurationResult executeDescribeAuditStreamConfiguration(
DescribeAuditStreamConfigurationRequest describeAuditStreamConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(describeAuditStreamConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAuditStreamConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAuditStreamConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAuditStreamConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAuditStreamConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the networking configuration to access the internal websites associated with the specified fleet.
*
*
* @param describeCompanyNetworkConfigurationRequest
* @return Result of the DescribeCompanyNetworkConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeCompanyNetworkConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public DescribeCompanyNetworkConfigurationResult describeCompanyNetworkConfiguration(DescribeCompanyNetworkConfigurationRequest request) {
request = beforeClientExecution(request);
return executeDescribeCompanyNetworkConfiguration(request);
}
@SdkInternalApi
final DescribeCompanyNetworkConfigurationResult executeDescribeCompanyNetworkConfiguration(
DescribeCompanyNetworkConfigurationRequest describeCompanyNetworkConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(describeCompanyNetworkConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeCompanyNetworkConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeCompanyNetworkConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeCompanyNetworkConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeCompanyNetworkConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Provides information about a user's device.
*
*
* @param describeDeviceRequest
* @return Result of the DescribeDevice operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeDevice
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public DescribeDeviceResult describeDevice(DescribeDeviceRequest request) {
request = beforeClientExecution(request);
return executeDescribeDevice(request);
}
@SdkInternalApi
final DescribeDeviceResult executeDescribeDevice(DescribeDeviceRequest describeDeviceRequest) {
ExecutionContext executionContext = createExecutionContext(describeDeviceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDeviceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDeviceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDevice");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDeviceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the device policy configuration for the specified fleet.
*
*
* @param describeDevicePolicyConfigurationRequest
* @return Result of the DescribeDevicePolicyConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeDevicePolicyConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public DescribeDevicePolicyConfigurationResult describeDevicePolicyConfiguration(DescribeDevicePolicyConfigurationRequest request) {
request = beforeClientExecution(request);
return executeDescribeDevicePolicyConfiguration(request);
}
@SdkInternalApi
final DescribeDevicePolicyConfigurationResult executeDescribeDevicePolicyConfiguration(
DescribeDevicePolicyConfigurationRequest describeDevicePolicyConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(describeDevicePolicyConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDevicePolicyConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeDevicePolicyConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDevicePolicyConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeDevicePolicyConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Provides information about the domain.
*
*
* @param describeDomainRequest
* @return Result of the DescribeDomain operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeDomain
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public DescribeDomainResult describeDomain(DescribeDomainRequest request) {
request = beforeClientExecution(request);
return executeDescribeDomain(request);
}
@SdkInternalApi
final DescribeDomainResult executeDescribeDomain(DescribeDomainRequest describeDomainRequest) {
ExecutionContext executionContext = createExecutionContext(describeDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDomainRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDomain");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDomainResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Provides basic information for the specified fleet, excluding identity provider, networking, and device
* configuration details.
*
*
* @param describeFleetMetadataRequest
* @return Result of the DescribeFleetMetadata operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeFleetMetadata
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public DescribeFleetMetadataResult describeFleetMetadata(DescribeFleetMetadataRequest request) {
request = beforeClientExecution(request);
return executeDescribeFleetMetadata(request);
}
@SdkInternalApi
final DescribeFleetMetadataResult executeDescribeFleetMetadata(DescribeFleetMetadataRequest describeFleetMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(describeFleetMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeFleetMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeFleetMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFleetMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeFleetMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the identity provider configuration of the specified fleet.
*
*
* @param describeIdentityProviderConfigurationRequest
* @return Result of the DescribeIdentityProviderConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeIdentityProviderConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public DescribeIdentityProviderConfigurationResult describeIdentityProviderConfiguration(DescribeIdentityProviderConfigurationRequest request) {
request = beforeClientExecution(request);
return executeDescribeIdentityProviderConfiguration(request);
}
@SdkInternalApi
final DescribeIdentityProviderConfigurationResult executeDescribeIdentityProviderConfiguration(
DescribeIdentityProviderConfigurationRequest describeIdentityProviderConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(describeIdentityProviderConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeIdentityProviderConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeIdentityProviderConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeIdentityProviderConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeIdentityProviderConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Provides information about the certificate authority.
*
*
* @param describeWebsiteCertificateAuthorityRequest
* @return Result of the DescribeWebsiteCertificateAuthority operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DescribeWebsiteCertificateAuthority
* @see AWS API Documentation
*/
@Override
@Deprecated
public DescribeWebsiteCertificateAuthorityResult describeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeDescribeWebsiteCertificateAuthority(request);
}
@SdkInternalApi
final DescribeWebsiteCertificateAuthorityResult executeDescribeWebsiteCertificateAuthority(
DescribeWebsiteCertificateAuthorityRequest describeWebsiteCertificateAuthorityRequest) {
ExecutionContext executionContext = createExecutionContext(describeWebsiteCertificateAuthorityRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeWebsiteCertificateAuthorityRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeWebsiteCertificateAuthorityRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeWebsiteCertificateAuthority");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeWebsiteCertificateAuthorityResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Disassociates a domain from Amazon WorkLink. End users lose the ability to access the domain with Amazon
* WorkLink.
*
*
* @param disassociateDomainRequest
* @return Result of the DisassociateDomain operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DisassociateDomain
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public DisassociateDomainResult disassociateDomain(DisassociateDomainRequest request) {
request = beforeClientExecution(request);
return executeDisassociateDomain(request);
}
@SdkInternalApi
final DisassociateDomainResult executeDisassociateDomain(DisassociateDomainRequest disassociateDomainRequest) {
ExecutionContext executionContext = createExecutionContext(disassociateDomainRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DisassociateDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(disassociateDomainRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateDomain");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DisassociateDomainResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Disassociates a website authorization provider from a specified fleet. After the disassociation, users can't load
* any associated websites that require this authorization provider.
*
*
* @param disassociateWebsiteAuthorizationProviderRequest
* @return Result of the DisassociateWebsiteAuthorizationProvider operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws ResourceAlreadyExistsException
* The resource already exists.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DisassociateWebsiteAuthorizationProvider
* @see AWS API Documentation
*/
@Override
@Deprecated
public DisassociateWebsiteAuthorizationProviderResult disassociateWebsiteAuthorizationProvider(DisassociateWebsiteAuthorizationProviderRequest request) {
request = beforeClientExecution(request);
return executeDisassociateWebsiteAuthorizationProvider(request);
}
@SdkInternalApi
final DisassociateWebsiteAuthorizationProviderResult executeDisassociateWebsiteAuthorizationProvider(
DisassociateWebsiteAuthorizationProviderRequest disassociateWebsiteAuthorizationProviderRequest) {
ExecutionContext executionContext = createExecutionContext(disassociateWebsiteAuthorizationProviderRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DisassociateWebsiteAuthorizationProviderRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(disassociateWebsiteAuthorizationProviderRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateWebsiteAuthorizationProvider");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DisassociateWebsiteAuthorizationProviderResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes a certificate authority (CA).
*
*
* @param disassociateWebsiteCertificateAuthorityRequest
* @return Result of the DisassociateWebsiteCertificateAuthority operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.DisassociateWebsiteCertificateAuthority
* @see AWS API Documentation
*/
@Override
@Deprecated
public DisassociateWebsiteCertificateAuthorityResult disassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeDisassociateWebsiteCertificateAuthority(request);
}
@SdkInternalApi
final DisassociateWebsiteCertificateAuthorityResult executeDisassociateWebsiteCertificateAuthority(
DisassociateWebsiteCertificateAuthorityRequest disassociateWebsiteCertificateAuthorityRequest) {
ExecutionContext executionContext = createExecutionContext(disassociateWebsiteCertificateAuthorityRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DisassociateWebsiteCertificateAuthorityRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(disassociateWebsiteCertificateAuthorityRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateWebsiteCertificateAuthority");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DisassociateWebsiteCertificateAuthorityResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of devices registered with the specified fleet.
*
*
* @param listDevicesRequest
* @return Result of the ListDevices operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.ListDevices
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public ListDevicesResult listDevices(ListDevicesRequest request) {
request = beforeClientExecution(request);
return executeListDevices(request);
}
@SdkInternalApi
final ListDevicesResult executeListDevices(ListDevicesRequest listDevicesRequest) {
ExecutionContext executionContext = createExecutionContext(listDevicesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListDevicesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDevicesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDevices");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDevicesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of domains associated to a specified fleet.
*
*
* @param listDomainsRequest
* @return Result of the ListDomains operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.ListDomains
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public ListDomainsResult listDomains(ListDomainsRequest request) {
request = beforeClientExecution(request);
return executeListDomains(request);
}
@SdkInternalApi
final ListDomainsResult executeListDomains(ListDomainsRequest listDomainsRequest) {
ExecutionContext executionContext = createExecutionContext(listDomainsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListDomainsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDomainsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDomains");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDomainsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of fleets for the current account and Region.
*
*
* @param listFleetsRequest
* @return Result of the ListFleets operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.ListFleets
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public ListFleetsResult listFleets(ListFleetsRequest request) {
request = beforeClientExecution(request);
return executeListFleets(request);
}
@SdkInternalApi
final ListFleetsResult executeListFleets(ListFleetsRequest listFleetsRequest) {
ExecutionContext executionContext = createExecutionContext(listFleetsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListFleetsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listFleetsRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFleets");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata()
.withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListFleetsResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of tags for the specified resource.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws InvalidRequestException
* The request is not valid.
* @sample AmazonWorkLink.ListTagsForResource
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) {
request = beforeClientExecution(request);
return executeListTagsForResource(request);
}
@SdkInternalApi
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {
ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of website authorization providers associated with a specified fleet.
*
*
* @param listWebsiteAuthorizationProvidersRequest
* @return Result of the ListWebsiteAuthorizationProviders operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.ListWebsiteAuthorizationProviders
* @see AWS API Documentation
*/
@Override
@Deprecated
public ListWebsiteAuthorizationProvidersResult listWebsiteAuthorizationProviders(ListWebsiteAuthorizationProvidersRequest request) {
request = beforeClientExecution(request);
return executeListWebsiteAuthorizationProviders(request);
}
@SdkInternalApi
final ListWebsiteAuthorizationProvidersResult executeListWebsiteAuthorizationProviders(
ListWebsiteAuthorizationProvidersRequest listWebsiteAuthorizationProvidersRequest) {
ExecutionContext executionContext = createExecutionContext(listWebsiteAuthorizationProvidersRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListWebsiteAuthorizationProvidersRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listWebsiteAuthorizationProvidersRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListWebsiteAuthorizationProviders");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListWebsiteAuthorizationProvidersResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Retrieves a list of certificate authorities added for the current account and Region.
*
*
* @param listWebsiteCertificateAuthoritiesRequest
* @return Result of the ListWebsiteCertificateAuthorities operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.ListWebsiteCertificateAuthorities
* @see AWS API Documentation
*/
@Override
@Deprecated
public ListWebsiteCertificateAuthoritiesResult listWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request) {
request = beforeClientExecution(request);
return executeListWebsiteCertificateAuthorities(request);
}
@SdkInternalApi
final ListWebsiteCertificateAuthoritiesResult executeListWebsiteCertificateAuthorities(
ListWebsiteCertificateAuthoritiesRequest listWebsiteCertificateAuthoritiesRequest) {
ExecutionContext executionContext = createExecutionContext(listWebsiteCertificateAuthoritiesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListWebsiteCertificateAuthoritiesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(listWebsiteCertificateAuthoritiesRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListWebsiteCertificateAuthorities");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new ListWebsiteCertificateAuthoritiesResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Moves a domain to ACTIVE status if it was in the INACTIVE status.
*
*
* @param restoreDomainAccessRequest
* @return Result of the RestoreDomainAccess operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.RestoreDomainAccess
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public RestoreDomainAccessResult restoreDomainAccess(RestoreDomainAccessRequest request) {
request = beforeClientExecution(request);
return executeRestoreDomainAccess(request);
}
@SdkInternalApi
final RestoreDomainAccessResult executeRestoreDomainAccess(RestoreDomainAccessRequest restoreDomainAccessRequest) {
ExecutionContext executionContext = createExecutionContext(restoreDomainAccessRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RestoreDomainAccessRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(restoreDomainAccessRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestoreDomainAccess");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RestoreDomainAccessResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Moves a domain to INACTIVE status if it was in the ACTIVE status.
*
*
* @param revokeDomainAccessRequest
* @return Result of the RevokeDomainAccess operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.RevokeDomainAccess
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public RevokeDomainAccessResult revokeDomainAccess(RevokeDomainAccessRequest request) {
request = beforeClientExecution(request);
return executeRevokeDomainAccess(request);
}
@SdkInternalApi
final RevokeDomainAccessResult executeRevokeDomainAccess(RevokeDomainAccessRequest revokeDomainAccessRequest) {
ExecutionContext executionContext = createExecutionContext(revokeDomainAccessRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new RevokeDomainAccessRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(revokeDomainAccessRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RevokeDomainAccess");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RevokeDomainAccessResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Signs the user out from all of their devices. The user can sign in again if they have valid credentials.
*
*
* @param signOutUserRequest
* @return Result of the SignOutUser operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.SignOutUser
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public SignOutUserResult signOutUser(SignOutUserRequest request) {
request = beforeClientExecution(request);
return executeSignOutUser(request);
}
@SdkInternalApi
final SignOutUserResult executeSignOutUser(SignOutUserRequest signOutUserRequest) {
ExecutionContext executionContext = createExecutionContext(signOutUserRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new SignOutUserRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(signOutUserRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SignOutUser");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SignOutUserResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Adds or overwrites one or more tags for the specified resource, such as a fleet. Each tag consists of a key and
* an optional value. If a resource already has a tag with the same key, this operation updates its value.
*
*
* @param tagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws InvalidRequestException
* The request is not valid.
* @sample AmazonWorkLink.TagResource
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public TagResourceResult tagResource(TagResourceRequest request) {
request = beforeClientExecution(request);
return executeTagResource(request);
}
@SdkInternalApi
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {
ExecutionContext executionContext = createExecutionContext(tagResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes one or more tags from the specified resource.
*
*
* @param untagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws InvalidRequestException
* The request is not valid.
* @sample AmazonWorkLink.UntagResource
* @see AWS API
* Documentation
*/
@Override
@Deprecated
public UntagResourceResult untagResource(UntagResourceRequest request) {
request = beforeClientExecution(request);
return executeUntagResource(request);
}
@SdkInternalApi
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {
ExecutionContext executionContext = createExecutionContext(untagResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates the audit stream configuration for the fleet.
*
*
* @param updateAuditStreamConfigurationRequest
* @return Result of the UpdateAuditStreamConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.UpdateAuditStreamConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public UpdateAuditStreamConfigurationResult updateAuditStreamConfiguration(UpdateAuditStreamConfigurationRequest request) {
request = beforeClientExecution(request);
return executeUpdateAuditStreamConfiguration(request);
}
@SdkInternalApi
final UpdateAuditStreamConfigurationResult executeUpdateAuditStreamConfiguration(UpdateAuditStreamConfigurationRequest updateAuditStreamConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(updateAuditStreamConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateAuditStreamConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateAuditStreamConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAuditStreamConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateAuditStreamConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates the company network configuration for the fleet.
*
*
* @param updateCompanyNetworkConfigurationRequest
* @return Result of the UpdateCompanyNetworkConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.UpdateCompanyNetworkConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public UpdateCompanyNetworkConfigurationResult updateCompanyNetworkConfiguration(UpdateCompanyNetworkConfigurationRequest request) {
request = beforeClientExecution(request);
return executeUpdateCompanyNetworkConfiguration(request);
}
@SdkInternalApi
final UpdateCompanyNetworkConfigurationResult executeUpdateCompanyNetworkConfiguration(
UpdateCompanyNetworkConfigurationRequest updateCompanyNetworkConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(updateCompanyNetworkConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateCompanyNetworkConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateCompanyNetworkConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateCompanyNetworkConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateCompanyNetworkConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates the device policy configuration for the fleet.
*
*
* @param updateDevicePolicyConfigurationRequest
* @return Result of the UpdateDevicePolicyConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.UpdateDevicePolicyConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public UpdateDevicePolicyConfigurationResult updateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request) {
request = beforeClientExecution(request);
return executeUpdateDevicePolicyConfiguration(request);
}
@SdkInternalApi
final UpdateDevicePolicyConfigurationResult executeUpdateDevicePolicyConfiguration(
UpdateDevicePolicyConfigurationRequest updateDevicePolicyConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(updateDevicePolicyConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateDevicePolicyConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateDevicePolicyConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDevicePolicyConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateDevicePolicyConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates domain metadata, such as DisplayName.
*
*
* @param updateDomainMetadataRequest
* @return Result of the UpdateDomainMetadata operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.UpdateDomainMetadata
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public UpdateDomainMetadataResult updateDomainMetadata(UpdateDomainMetadataRequest request) {
request = beforeClientExecution(request);
return executeUpdateDomainMetadata(request);
}
@SdkInternalApi
final UpdateDomainMetadataResult executeUpdateDomainMetadata(UpdateDomainMetadataRequest updateDomainMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(updateDomainMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateDomainMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDomainMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDomainMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDomainMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates fleet metadata, such as DisplayName.
*
*
* @param updateFleetMetadataRequest
* @return Result of the UpdateFleetMetadata operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.UpdateFleetMetadata
* @see AWS
* API Documentation
*/
@Override
@Deprecated
public UpdateFleetMetadataResult updateFleetMetadata(UpdateFleetMetadataRequest request) {
request = beforeClientExecution(request);
return executeUpdateFleetMetadata(request);
}
@SdkInternalApi
final UpdateFleetMetadataResult executeUpdateFleetMetadata(UpdateFleetMetadataRequest updateFleetMetadataRequest) {
ExecutionContext executionContext = createExecutionContext(updateFleetMetadataRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateFleetMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateFleetMetadataRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateFleetMetadata");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateFleetMetadataResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Updates the identity provider configuration for the fleet.
*
*
* @param updateIdentityProviderConfigurationRequest
* @return Result of the UpdateIdentityProviderConfiguration operation returned by the service.
* @throws UnauthorizedException
* You are not authorized to perform this action.
* @throws InternalServerErrorException
* The service is temporarily unavailable.
* @throws InvalidRequestException
* The request is not valid.
* @throws ResourceNotFoundException
* The requested resource was not found.
* @throws TooManyRequestsException
* The number of requests exceeds the limit.
* @sample AmazonWorkLink.UpdateIdentityProviderConfiguration
* @see AWS API Documentation
*/
@Override
@Deprecated
public UpdateIdentityProviderConfigurationResult updateIdentityProviderConfiguration(UpdateIdentityProviderConfigurationRequest request) {
request = beforeClientExecution(request);
return executeUpdateIdentityProviderConfiguration(request);
}
@SdkInternalApi
final UpdateIdentityProviderConfigurationResult executeUpdateIdentityProviderConfiguration(
UpdateIdentityProviderConfigurationRequest updateIdentityProviderConfigurationRequest) {
ExecutionContext executionContext = createExecutionContext(updateIdentityProviderConfigurationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new UpdateIdentityProviderConfigurationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(updateIdentityProviderConfigurationRequest));
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkLink");
request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateIdentityProviderConfiguration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new UpdateIdentityProviderConfigurationResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
* Returns additional metadata for a previously executed successful, request, typically used for debugging issues
* where a service isn't acting as expected. This data isn't considered part of the result data returned by an
* operation, so it's available through this separate, diagnostic interface.
*
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing the request.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private Response invoke(Request request, HttpResponseHandler> responseHandler,
ExecutionContext executionContext) {
return invoke(request, responseHandler, executionContext, null, null);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private Response invoke(Request request, HttpResponseHandler> responseHandler,
ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) {
executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider));
return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait);
}
/**
* Invoke with no authentication. Credentials are not required and any credentials set on the client or request will
* be ignored for this operation.
**/
private Response anonymousInvoke(Request request,
HttpResponseHandler> responseHandler, ExecutionContext executionContext) {
return doInvoke(request, responseHandler, executionContext, null, null);
}
/**
* Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the
* ExecutionContext beforehand.
**/
private Response doInvoke(Request request, HttpResponseHandler> responseHandler,
ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) {
if (discoveredEndpoint != null) {
request.setEndpoint(discoveredEndpoint);
request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery");
} else if (uriFromEndpointTrait != null) {
request.setEndpoint(uriFromEndpointTrait);
} else {
request.setEndpoint(endpoint);
}
request.setTimeOffset(timeOffset);
HttpResponseHandler errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());
return client.execute(request, responseHandler, errorResponseHandler, executionContext);
}
@com.amazonaws.annotation.SdkInternalApi
static com.amazonaws.protocol.json.SdkJsonProtocolFactory getProtocolFactory() {
return protocolFactory;
}
@Override
public void shutdown() {
super.shutdown();
}
}