< Back

Edit-S3Object

Sat Jan 18, 2020 7:33 pm

NAME Edit-S3Object



SYNOPSIS

Edit text files directly from bucket.





SYNTAX

Edit-S3Object [-BucketName] <String> [-KeyPrefix] <String> [-Key] <String> [-Editor] <String> [-Region] <String>

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Only text and non-encrypted.





PARAMETERS

-BucketName <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-KeyPrefix <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Key <String>



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Editor <String>



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Region <String>



Required? true

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$BucketName = 'test-mybucket'



$KeyPrefix = 'folder1/subfolder3' # folder/folder/folder

$Key = 'test.txt' # filename

$Region = 'ap-southeast-2'



Edit-S3Object -BucketName $BucketName -KeyPrefix $KeyPrefix -Key $Key -Region $Region -Editor











RELATED LINKS