Slide 28
Slide 28 text
aws/aws-cdk-lib
Bucket ͷجఈͰ͋Δ BucketBase Ϋϥεͷ “grantReplicationPermission” ϝιου
S3 ͷϨϓϦέʔγϣϯߏʹ͓͍ͯɺϨϓϦέʔγϣϯͷ࣮ߦ࣌ʹ S3 ͕༻͢Δ Service Role ʹରͯ͠ɺ
ϨϓϦέʔγϣϯͷ࣮ߦʹඞཁͳݖݶΛ༩͢Δͷʢ࣮ଶͱͯ͠ඞཁͳݖݶ͕৭ʑ͋Δʣ
ref: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Bucket.html#grantwbrreplicationwbrpermissionidentity-props
class BucketBase {
public grantReplicationPermission(
identity: IGrantable,
props: GrantReplicationPermissionProps
): Grant { … }
}