s3init
s3init |
Purpose
Synopsis
procedure s3init(bucket:s3bucket, cfgid:text)
procedure s3init(bucket:s3bucket, cfgid:text, env:text)
Arguments
|
bucket
|
S3 bucket to be configured
|
|
cfgid
|
The ID of the bucket configuration to use.
|
|
env
|
The lifecycle stage of the DMP S3 folder to use; one of the constants
S3_DMP_DESIGN,
S3_DMP_STAGING or
S3_DMP_PRODUCTION. (Xpress Insight only.)
|
Example
Example of initializing an s3bucket to use the DMP
solutionData folder.
declarations
mybucket: s3bucket
end-declarations
s3init(mybucket,S3_DMP_SOLUTIONDATA)
if s3status(mybucket)<>S3_OK then
writeln("Error returned by S3: ",s3getlasterror(mybucket))
exit(1)
end-if
Further information
1. After calling, check the value of
s3status for any errors.
2. If the supplied
s3bucket has already been initialized, the previous configuration will be overwritten.
3. When used from DMP, if
cfgid is
S3_DMP_SOLUTIONDATA and no
env is specified, the lifecycle stage of the component instance running the model will be used.
4. You can only specify a value for
env from within an Xpress Insight component running in DMP.
5. After a s3bucket has been initialized using
s3init, it will not be possible to change the
url or
region field directly.
Related topics
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
