Protected
Check if a bucket name is available.
Use a bare-bones client and the command you need to make an API call.
import { BucketsClient, CheckBucketNameAvailabilityCommand } from "@stedi/sdk-client-buckets"; // ES Modules import// const { BucketsClient, CheckBucketNameAvailabilityCommand } = require("@stedi/sdk-client-buckets"); // CommonJS importconst client = new BucketsClient(config);const input = { // CheckBucketNameAvailabilityInput bucketName: "STRING_VALUE", // required};const command = new CheckBucketNameAvailabilityCommand(input);const response = await client.send(command);// { // CheckBucketNameAvailabilityOutput// bucketName: "STRING_VALUE", // required// nameAvailable: true || false, // required// isOwnedByRequester: true || false, // required// };
CheckBucketNameAvailabilityCommandInput
CheckBucketNameAvailabilityCommandOutput
input
response
config
NoSuchBucketException (client fault)
NoSuchKeyException (client fault)
AccessDeniedException (client fault)
ProductUnavailableException (client fault)
ResourceAlreadyExistsException (client fault)
ResourceNotFoundException (client fault)
ResourceUnderChangeException (client fault)
ServiceException (server fault)
BucketsServiceException
Base exception class for all service exceptions from Buckets service.
Readonly
Static
Check if a bucket name is available.
Example
Use a bare-bones client and the command you need to make an API call.
Param
CheckBucketNameAvailabilityCommandInput
Returns
CheckBucketNameAvailabilityCommandOutput
See
input
shape.response
shape.config
shape.Throws
NoSuchBucketException (client fault)
Throws
NoSuchKeyException (client fault)
Throws
AccessDeniedException (client fault)
Throws
ProductUnavailableException (client fault)
Throws
ResourceAlreadyExistsException (client fault)
Throws
ResourceNotFoundException (client fault)
Throws
ResourceUnderChangeException (client fault)
Throws
ServiceException (server fault)
Throws
BucketsServiceException
Base exception class for all service exceptions from Buckets service.