lucee.Component
commandbox.system.services.S3Service
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I convert s3 paths (s3://bucket/path) to signed HTTPS urls
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
struct
|
bucketRegionCache
|
true
|
false
|
|
any
|
configService
|
true
|
false
|
|
any
|
fileSystemUtil
|
true
|
false
|
|
string
|
iamRolePath
Local URL to query for IAM role.
|
true
|
false
|
|
any
|
systemSettings
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
Constructor. |
|
| Method Summary | |
|---|---|
private any
|
encodeUrl([any urlPath], [any encodeForwardSlash='true'])
|
private any
|
generatePresignedPath([any method], [any bucket], [any objectKey], [any bucketRegion], [any credentials])
|
string
|
generateSignedURL(string s3Path, [boolean verbose='false'])
Generate a signed HTTPS URL from a S3 path. |
string
|
getBucketRegionCache()
|
string
|
getConfigService()
|
string
|
getFileSystemUtil()
|
string
|
getIamRolePath()
|
string
|
getSystemSettings()
|
string
|
getWirebox()
|
private any
|
iso8601([any dateToFormat='[runtime expression]'])
|
private any
|
makeHTTPRequest([any urlPath], [any method='GET'], [any redirect='true'], [any timeout='20'], [any headers='[runtime expression]'], [any allowProxy='true'])
|
any
|
onDIComplete()
|
private any
|
resolveAwsSettings([any bucket], [any verbose='false'])
|
private any
|
resolveBucketRegion([any bucket], [any defaultRegion], [any verbose='false'])
|
private any
|
resolveCredentials([any endpointSettings], [any credentialsFile], [any profile], [any verbose='false'])
|
any
|
setBucketRegionCache(struct bucketRegionCache)
|
any
|
setConfigService(any configService)
|
any
|
setFileSystemUtil(any fileSystemUtil)
|
any
|
setIamRolePath(string iamRolePath)
|
any
|
setSystemSettings(any systemSettings)
|
any
|
setWirebox(any wirebox)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - configServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - FileSystemserializable - trueLocal URL to query for IAM role
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - SystemSettingsserializable - trueaccess - publicrequired - falsereturntype - anyinject - wireboxserializable - true| Method Detail |
|---|
urlPathencodeForwardSlashmethodbucketobjectKeybucketRegioncredentialsGenerate a signed HTTPS URL from a S3 path.
s3Path - Path to S3 object specified in the format s3://bucket/path/to/objectverbose - Set to true to log additional informationdateToFormaturlPathmethodredirecttimeoutheadersallowProxybucketverbosebucketdefaultRegionverboseendpointSettingscredentialsFileprofileverbosebucketRegionCacheconfigServicefileSystemUtiliamRolePathsystemSettingswirebox