def __init__()

in app.py [0:0]


  def __init__(self, scope: Construct, id: builtins.str, vpc:ec2.IVpc, mad:ad.CfnMicrosoftAD, bucket:s3.IBucket) -> None:
    super().__init__(scope, id)

    self.security_group = ec2.SecurityGroup(self,'SecurityGroup',
      vpc=vpc,
      allow_all_outbound=True,
      description='Security Group for the TransferFamilyConstruct')

    '''
    Configure Transfer Family Server
    '''
    # TODO: Should this be VPC or Public endpoint?
    # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-server.html
    self.transfer_server = tx.CfnServer(self,'TransferServer',
      domain='S3',
      endpoint_type= 'VPC',
      endpoint_details= tx.CfnServer.EndpointDetailsProperty(
        vpc_id= vpc.vpc_id,
        security_group_ids=[self.security_group.security_group_id],
        subnet_ids=[x.subnet_id for x in vpc.select_subnets(subnet_group_name='Public').subnets]
      ),
      identity_provider_type='AWS_DIRECTORY_SERVICE',
      identity_provider_details=tx.CfnServer.IdentityProviderDetailsProperty(
        directory_id= mad.ref
      ))