def __init__()

in dms_cdk/s3.py [0:0]


    def __init__(self, scope: core.Construct, construct_id: str, repo_name: str=None, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        self.stage_bucket = s3.Bucket(self, "datalake-stage",
            block_public_access= s3.BlockPublicAccess.BLOCK_ALL,
            encryption= s3.BucketEncryption.S3_MANAGED,
            metrics=[{"id": "EntireBucket"}]
        )

        # Bucket Lifecycle Policies
        self.stage_bucket.add_lifecycle_rule(
            transitions=[
                s3.Transition(
                    storage_class=s3.StorageClass.GLACIER,
                    transition_after=Core.Duration.days(365 * 1)
                )
            ]
        )