aws_s3_private_flutter

Creator: coderz1093

Last updated:

0 purchases

aws_s3_private_flutter Image
aws_s3_private_flutter Images

Languages

Categories

Add to Cart

Description:

aws s3 private flutter

AWS S3 Flutter #
This plugin developed to make it easy to get object from AWS S3 without writing Android, IOS, and
Web code separately using method channel.
🌟 Installing #
dependencies:
...
aws_s3_private_flutter: <latest_version>
copied to clipboard
⚡️ Import #
import 'package:aws_s3_private_flutter/aws_s3_private_flutter.dart';
copied to clipboard
Screen Shot #





Platform
Android
IOS
Web




Supported
✅️️
✅️
✅️



Available Parameters #
final String _secretKey;
final String _accessKey;
final String _host;
final String _region;
final String? _bucketId;
final String? _sessionToken;
static const _service = "s3";

/// Creates a new AwsS3Client instance.
/// @param [secretKey] The secret key. Required. see https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html
/// @param [accessKey] The access key. Required. see https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html
/// @param [bucketId] The bucket. Required. See https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro
/// @param [host] The host, in path-style. Defaults to "s3.$region.amazonaws.com". See https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro
/// @param [region] The region of the bucket. Required.
/// @param [sessionToken] The session token. Optional.
/// @param [bucketId] is not required if buckedId is already available in your [host].
AwsS3PrivateFlutter({required String secretKey,
required String accessKey,
required String? bucketId,
required String host,
required String region,
String? sessionToken});
copied to clipboard



Parameter
Datatype
Initial Value
Required




_secretKey
String
null
Yes


_accessKey
String
null
Yes


_host
String
null
Yes


_region
String
null
Yes


_bucketId
String
null
No


_sessionToken
String
null
No



Example #

var url = 'bucket-folder/object-name.extension';

final AwsS3PrivateFlutter awsS3PrivateFlutter = AwsS3PrivateFlutter(
accessKey: 'your-access-key',
secretKey: 'your-secret-key',
region: 'your-region-here',
/// example host: '[bucket-id].s3.[region].amazonaws.com'
host: 'your-host-here',
/// [bucketId] is not required if bucketId is already available in your [host].
bucketId: 'your-bucket-id');

getObject() async {
Response res = await awsS3PrivateFlutter.getObjectWithSignedRequest(key: url);
}
copied to clipboard
Contributions #
If you encounter any problem or the library is missing a feature feel free to open an issue. Feel
free to fork, improve the package and make pull request.
MTZ INFOTECH #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.