Add-VBOAmazonS3Folder
Short Description
Creates Amazon S3 folders.
Syntax
|
Add-VBOAmazonS3Folder -Bucket <VBOAmazonS3Bucket> -Name <String> [<CommonParameters>] |
Detailed Description
This cmdlet creates Amazon S3 folders.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Bucket |
Specifies the Amazon S3 bucket. The cmdlet will add Amazon S3 folder to this bucket.
Accepts the
To get this object, run the |
True |
Named |
False |
|
|
Name |
Specifies a name of the Amazon S3 folder. The cmdlet will create the Amazon S3 folder with this name. |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBOAmazonS3Folder object that contains an array of Amazon S3 folders.
Examples
Creating Amazon S3 Folder
This example shows how to create an Amazon S3 folder.
|
$account = Get-VBOAmazonS3Account -Id 26e61916-0257-4a05-8f65-204628d2ed7a $connection = New-VBOAmazonS3ConnectionSettings -Account $account -RegionType Global $bucket = Get-VBOAmazonS3Bucket -AmazonS3ConnectionSettings $connection -RegionId eu-north-1 Add-VBOAmazonS3Folder -Bucket $bucket -Name "February_reports" |
Perform the following steps:
- Run the
Get-VBOAmazonS3AccountReturns Amazon S3 storage account credentials. cmdlet. Specify theIdparameter value. Save the result to the$accountvariable. - Run the
New-VBOAmazonS3ConnectionSettingsDefines connection settings to Amazon S3 object storage repository. cmdlet. Specify the necessary parameters. Save the result to the$connectionvariable. - Run the
Get-VBOAmazonS3BucketReturns Amazon S3 buckets. cmdlet. Specify the necessary parameters. Save the result to the$bucketvariable. - Run the
Add-VBOAmazonS3Foldercmdlet. Set the$bucketvariable as theBucketparameter value. Specify theNameparameter value.
Related Commands
Get-VBOAmazonS3AccountReturns Amazon S3 storage account credentials.New-VBOAmazonS3ConnectionSettingsDefines connection settings to Amazon S3 object storage repository.Get-VBOAmazonS3BucketReturns Amazon S3 buckets.