Add-VBOAmazonS3Folder

In this article

    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

    Accept Wildcard Characters

    Bucket

    Specifies the Amazon S3 buckets. The cmdlet will add Amazon S3 folder to this bucket.

    Accepts the VBOAmazonS3Bucket object. To get this object, run the Get-VBOAmazonS3Bucket cmdlet.

    True

    Named

    False

    False

    Name

    Specifies the name of the Amazon S3. The cmdlet will create the Amazon S3 folder with this name.

    String

    True

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Output Object

    The cmdlet returns the VBOAmazonS3Folder object that contains an array of Amazon S3 folders.

    Examples

    Creating Amazon S3 Folders

    This example shows how to create an Amazon S3 folder.

    $account = Get-VBOAmazonS3Account -Id "26e61916-0257-4a05-8f65-204628d2ed7a"

    $connection = New-VBOAmazonS3ServiceConnectionSettings -Account $account -ServicePoint "172.17.186.13:9000"

    $bucket = Get-VBOAmazonS3Bucket -AmazonS3ConnectionSettings $connection -Region EUStockholm

    Add-VBOAmazonS3Folder -Bucket $bucket -Name "February_reports"

    Perform the following steps:

    1. Run the Get-VBOAmazonS3Account cmdlet. Specify the Id parameter value. Save the result to the $account variable.
    2. Run the New-VBOAmazonS3ServiceConnectionSettings cmdlet. Specify the necessary parameters. Save the result to the $connection variable.
    1. Run the Get-VBOAmazonS3Bucket cmdlet. Specify the necessary parameters. Save the result to the $bucket variable.
    2. Run the Add-VBOAmazonS3Folder cmdlet. Set the $bucket variable as the Bucket parameter value. Specify the Name parameter value.

    Related Commands