File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,6 +243,12 @@ export default ({
243243 : `${ total } ` ,
244244 transferAcceleration : accelerationStatus ,
245245 notificationConfiguration : notificationConfigurationData ,
246+ aclGrants : grants ?. map ( g => ( {
247+ id : cuid ( ) ,
248+ granteeType : g . Grantee ?. Type ,
249+ granteeUri : g . Grantee ?. URI ,
250+ permission : g . Permission ,
251+ } ) ) || [ ] ,
246252 }
247253 return s3
248254}
Original file line number Diff line number Diff line change @@ -53,6 +53,18 @@ type awsS3NotificationConfiguration
5353 lambdaFunctionConfigurations : [awsS3LambdaFunctionConfiguration ]
5454}
5555
56+ type awsS3AclGrant
57+ @generate (
58+ query : { get : false , query : true , aggregate : false }
59+ mutation : { add : false , delete : false }
60+ subscription : false
61+ ) {
62+ id : String ! @id
63+ granteeType : String @search (by : [hash ])
64+ granteeUri : String @search (by : [hash ])
65+ permission : String @search (by : [hash ])
66+ }
67+
5668type awsS3 implements awsBaseService @key (fields : " arn" ) {
5769 access : String @search (by : [hash , regexp ])
5870 bucketOwnerName : String @search (by : [hash , regexp ])
@@ -75,6 +87,7 @@ type awsS3 implements awsBaseService @key(fields: "arn") {
7587 notificationConfiguration : awsS3NotificationConfiguration
7688 policy : awsIamJSONPolicy
7789 rawPolicy : String @search (by : [hash , regexp ])
90+ aclGrants : [awsS3AclGrant ]
7891 kinesisFirehose : [awsKinesisFirehose ] @hasInverse (field : s3 )
7992 tags : [awsRawTag ]
8093 cloudfrontDistributions : [awsCloudfront ] @hasInverse (field : s3 )
Original file line number Diff line number Diff line change @@ -3773,6 +3773,7 @@ export type AwsRouteTable = AwsBaseService & {
37733773
37743774export type AwsS3 = AwsBaseService & {
37753775 access ?: Maybe < Scalars [ 'String' ] > ;
3776+ aclGrants ?: Maybe < Array < Maybe < AwsS3AclGrant > > > ;
37763777 blockPublicAcls ?: Maybe < Scalars [ 'String' ] > ;
37773778 blockPublicPolicy ?: Maybe < Scalars [ 'String' ] > ;
37783779 bucketOwnerName ?: Maybe < Scalars [ 'String' ] > ;
@@ -3805,6 +3806,13 @@ export type AwsS3 = AwsBaseService & {
38053806 versioning ?: Maybe < Scalars [ 'String' ] > ;
38063807} ;
38073808
3809+ export type AwsS3AclGrant = {
3810+ granteeType ?: Maybe < Scalars [ 'String' ] > ;
3811+ granteeUri ?: Maybe < Scalars [ 'String' ] > ;
3812+ id : Scalars [ 'String' ] ;
3813+ permission ?: Maybe < Scalars [ 'String' ] > ;
3814+ } ;
3815+
38083816export type AwsS3ConfigurationBase = {
38093817 events ?: Maybe < Array < Maybe < Scalars [ 'String' ] > > > ;
38103818 filterRules ?: Maybe < Array < Maybe < AwsS3FilterRule > > > ;
You can’t perform that action at this time.
0 commit comments