Skip to content

Commit b6f8719

Browse files
author
ekjotmultani
committed
added doc comments and changed name of bucket class
1 parent f22dd48 commit b6f8719

File tree

6 files changed

+53
-45
lines changed

6 files changed

+53
-45
lines changed

devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_output.dart

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import 'package:amplify_core/amplify_core.dart';
5+
6+
part 'bucket_outputs.g.dart';
7+
8+
/// {@template amplify_core.amplify_outputs.bucket_outputs}
9+
/// The Amplify Gen 2 outputs for Buckets in the Storage category.
10+
/// {@endtemplate}
11+
@zAmplifyOutputsSerializable
12+
class BucketOutputs
13+
with AWSEquatable<BucketOutputs>, AWSSerializable, AWSDebuggable{
14+
/// {@macro amplify_core.amplify_outputs.bucket_outputs}
15+
const BucketOutputs({required this.name, required this.bucketName, required this.awsRegion,});
16+
17+
factory BucketOutputs.fromJson(Map<String, Object?> json) =>
18+
_$BucketOutputsFromJson(json);
19+
20+
/// The user friendly name of the bucket
21+
final String name;
22+
/// The Amazon S3 bucket name.
23+
final String bucketName;
24+
/// The AWS region of Amazon S3 resources.
25+
final String awsRegion;
26+
27+
@override
28+
List<Object?> get props => [
29+
name,
30+
bucketName,
31+
awsRegion,
32+
];
33+
34+
@override
35+
String get runtimeTypeName => 'BucketOutputs';
36+
37+
@override
38+
Object? toJson() {
39+
return _$BucketOutputsToJson(this);
40+
}
41+
}

packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_output.g.dart renamed to packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.g.dart

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/amplify_core/lib/src/config/amplify_outputs/storage/storage_outputs.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import 'package:amplify_core/amplify_core.dart';
5-
import 'package:amplify_core/src/config/amplify_outputs/storage/bucket_output.dart';
5+
import 'package:amplify_core/src/config/amplify_outputs/storage/bucket_outputs.dart';
66

77
part 'storage_outputs.g.dart';
88

@@ -26,7 +26,7 @@ class StorageOutputs
2626
final String bucketName;
2727

2828
/// The list of buckets if there are multiple buckets for the project
29-
final List<BucketOutput>? buckets;
29+
final List<BucketOutputs>? buckets;
3030

3131
@override
3232
List<Object?> get props => [awsRegion, bucketName, buckets];

packages/amplify_core/lib/src/config/amplify_outputs/storage/storage_outputs.g.dart

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)