-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-datasync): AWS DataSync now supports Amazon FSx for NetAp…
…p ONTAP locations.
- Loading branch information
awstools
committed
Jun 28, 2022
1 parent
89baffe
commit 87a3aac
Showing
10 changed files
with
1,096 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
clients/client-datasync/src/commands/CreateLocationFsxOntapCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// smithy-typescript generated code | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; | ||
import { CreateLocationFsxOntapRequest, CreateLocationFsxOntapResponse } from "../models/models_0"; | ||
import { | ||
deserializeAws_json1_1CreateLocationFsxOntapCommand, | ||
serializeAws_json1_1CreateLocationFsxOntapCommand, | ||
} from "../protocols/Aws_json1_1"; | ||
|
||
export interface CreateLocationFsxOntapCommandInput extends CreateLocationFsxOntapRequest {} | ||
export interface CreateLocationFsxOntapCommandOutput extends CreateLocationFsxOntapResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Creates an endpoint for an Amazon FSx for NetApp ONTAP file system that DataSync | ||
* can access for a transfer. For more information, see <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-ontap-location.html">Creating a location for FSx for ONTAP</a>.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DataSyncClient, CreateLocationFsxOntapCommand } from "@aws-sdk/client-datasync"; // ES Modules import | ||
* // const { DataSyncClient, CreateLocationFsxOntapCommand } = require("@aws-sdk/client-datasync"); // CommonJS import | ||
* const client = new DataSyncClient(config); | ||
* const command = new CreateLocationFsxOntapCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link CreateLocationFsxOntapCommandInput} for command's `input` shape. | ||
* @see {@link CreateLocationFsxOntapCommandOutput} for command's `response` shape. | ||
* @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape. | ||
* | ||
*/ | ||
export class CreateLocationFsxOntapCommand extends $Command< | ||
CreateLocationFsxOntapCommandInput, | ||
CreateLocationFsxOntapCommandOutput, | ||
DataSyncClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: CreateLocationFsxOntapCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: DataSyncClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<CreateLocationFsxOntapCommandInput, CreateLocationFsxOntapCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "DataSyncClient"; | ||
const commandName = "CreateLocationFsxOntapCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: CreateLocationFsxOntapRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: CreateLocationFsxOntapResponse.filterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: CreateLocationFsxOntapCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_json1_1CreateLocationFsxOntapCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateLocationFsxOntapCommandOutput> { | ||
return deserializeAws_json1_1CreateLocationFsxOntapCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
clients/client-datasync/src/commands/DescribeLocationFsxOntapCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
// smithy-typescript generated code | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
import { DataSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataSyncClient"; | ||
import { DescribeLocationFsxOntapRequest, DescribeLocationFsxOntapResponse } from "../models/models_0"; | ||
import { | ||
deserializeAws_json1_1DescribeLocationFsxOntapCommand, | ||
serializeAws_json1_1DescribeLocationFsxOntapCommand, | ||
} from "../protocols/Aws_json1_1"; | ||
|
||
export interface DescribeLocationFsxOntapCommandInput extends DescribeLocationFsxOntapRequest {} | ||
export interface DescribeLocationFsxOntapCommandOutput extends DescribeLocationFsxOntapResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Provides details about how an DataSync location for an Amazon FSx for NetApp ONTAP file system is configured.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DataSyncClient, DescribeLocationFsxOntapCommand } from "@aws-sdk/client-datasync"; // ES Modules import | ||
* // const { DataSyncClient, DescribeLocationFsxOntapCommand } = require("@aws-sdk/client-datasync"); // CommonJS import | ||
* const client = new DataSyncClient(config); | ||
* const command = new DescribeLocationFsxOntapCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link DescribeLocationFsxOntapCommandInput} for command's `input` shape. | ||
* @see {@link DescribeLocationFsxOntapCommandOutput} for command's `response` shape. | ||
* @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape. | ||
* | ||
*/ | ||
export class DescribeLocationFsxOntapCommand extends $Command< | ||
DescribeLocationFsxOntapCommandInput, | ||
DescribeLocationFsxOntapCommandOutput, | ||
DataSyncClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: DescribeLocationFsxOntapCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: DataSyncClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<DescribeLocationFsxOntapCommandInput, DescribeLocationFsxOntapCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "DataSyncClient"; | ||
const commandName = "DescribeLocationFsxOntapCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: DescribeLocationFsxOntapRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: DescribeLocationFsxOntapResponse.filterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: DescribeLocationFsxOntapCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_json1_1DescribeLocationFsxOntapCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeLocationFsxOntapCommandOutput> { | ||
return deserializeAws_json1_1DescribeLocationFsxOntapCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.