def to_json()

in aws_emr_launch/constructs/emr_constructs/emr_profile.py [0:0]


    def to_json(self) -> Dict[str, Any]:
        property_values = {
            "ProfileName": self._profile_name,
            "Namespace": self._namespace,
            "Vpc": self._vpc.vpc_id if self._vpc is not None else None,
            "MutableInstanceRole": self._mutable_instance_role,
            "MutableSecurityGroups": self._mutable_security_groups,
            "SecurityGroups": {
                "MasterGroup": self._security_groups.master_group.security_group_id,
                "WorkersGroup": self._security_groups.workers_group.security_group_id,
                "ServiceGroup": self._security_groups.service_group.security_group_id,
            },
            "Roles": {
                "ServiceRole": self._roles.service_role.role_arn,
                "InstanceRole": self._roles.instance_role.role_arn,
                "InstanceProfile": self._roles.instance_profile_arn,
                "AutoScalingRole": self._roles.autoscaling_role.role_arn,
            },
            "ArtifactsBucket": self._artifacts_bucket.bucket_name if self._artifacts_bucket else None,
            "ArtifactsPath": self._artifacts_path,
            "LogsBucket": self._logs_bucket.bucket_name if self._logs_bucket else None,
            "LogsPath": self._logs_path,
            "S3EncryptionConfiguration": self._s3_encryption_configuration,
            "LocalDiskEncryptionConfiguration": self._local_disk_encryption_configuration,
            "TLSCertificateConfiguration": self._tls_certificate_configuration,
            "KerberosConfiguration": self._kerberos_configuration,
            "KerberosAttributesSecret": (
                self._kerberos_attributes_secret.secret_arn if self._kerberos_attributes_secret is not None else None
            ),
            "EmrFsConfiguration": self._emrfs_configuration,
            "LakeFormationConfiguration": self._lake_formation_configuration,
            "SecurityConfiguration": self._security_configuration_name,
            "Description": self._description,
        }
        return property_values