import { Command as $Command } from "@smithy/smithy-client"; import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types"; import { MobileClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MobileClient"; import { CreateProjectRequest, CreateProjectResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public */ export type CreateProjectCommandInputType = Omit & { contents?: BlobPayloadInputTypes; }; /** * @public * * The input for {@link CreateProjectCommand}. */ export interface CreateProjectCommandInput extends CreateProjectCommandInputType { } /** * @public * * The output of {@link CreateProjectCommand}. */ export interface CreateProjectCommandOutput extends CreateProjectResult, __MetadataBearer { } declare const CreateProjectCommand_base: { new (input: CreateProjectCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [CreateProjectCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

* Creates an AWS Mobile Hub project. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MobileClient, CreateProjectCommand } from "@aws-sdk/client-mobile"; // ES Modules import * // const { MobileClient, CreateProjectCommand } = require("@aws-sdk/client-mobile"); // CommonJS import * const client = new MobileClient(config); * const input = { // CreateProjectRequest * name: "STRING_VALUE", * region: "STRING_VALUE", * contents: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * snapshotId: "STRING_VALUE", * }; * const command = new CreateProjectCommand(input); * const response = await client.send(command); * // { // CreateProjectResult * // details: { // ProjectDetails * // name: "STRING_VALUE", * // projectId: "STRING_VALUE", * // region: "STRING_VALUE", * // state: "NORMAL" || "SYNCING" || "IMPORTING", * // createdDate: new Date("TIMESTAMP"), * // lastUpdatedDate: new Date("TIMESTAMP"), * // consoleUrl: "STRING_VALUE", * // resources: [ // Resources * // { // Resource * // type: "STRING_VALUE", * // name: "STRING_VALUE", * // arn: "STRING_VALUE", * // feature: "STRING_VALUE", * // attributes: { // Attributes * // "": "STRING_VALUE", * // }, * // }, * // ], * // }, * // }; * * ``` * * @param CreateProjectCommandInput - {@link CreateProjectCommandInput} * @returns {@link CreateProjectCommandOutput} * @see {@link CreateProjectCommandInput} for command's `input` shape. * @see {@link CreateProjectCommandOutput} for command's `response` shape. * @see {@link MobileClientResolvedConfig | config} for MobileClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

* The request cannot be processed because some parameter is not valid or the project * state prevents the operation from being performed. *

* * @throws {@link InternalFailureException} (server fault) *

* The service has encountered an unexpected error condition which prevents it from * servicing the request. *

* * @throws {@link LimitExceededException} (client fault) *

* There are too many AWS Mobile Hub projects in the account or the account has * exceeded the maximum number of resources in some AWS service. You should create * another sub-account using AWS Organizations or remove some resources and retry * your request. *

* * @throws {@link NotFoundException} (client fault) *

* No entity can be found with the specified identifier. *

* * @throws {@link ServiceUnavailableException} (server fault) *

* The service is temporarily unavailable. The request should be retried after some * time delay. *

* * @throws {@link TooManyRequestsException} (client fault) *

* Too many requests have been received for this AWS account in too short a time. The * request should be retried after some time delay. *

* * @throws {@link UnauthorizedException} (client fault) *

* Credentials of the caller are insufficient to authorize the request. *

* * @throws {@link MobileServiceException} *

Base exception class for all service exceptions from Mobile service.

* * @public */ export declare class CreateProjectCommand extends CreateProjectCommand_base { }