def by_access_package_resource_environment_id(self,access_package_resource_environment_id: str) -> AccessPackageResourceEnvironmentItemRequestBuilder:
        """
        Provides operations to manage the resourceEnvironments property of the microsoft.graph.entitlementManagement entity.
        param access_package_resource_environment_id: The unique identifier of accessPackageResourceEnvironment
        Returns: AccessPackageResourceEnvironmentItemRequestBuilder
        """
        if access_package_resource_environment_id is None:
            raise TypeError("access_package_resource_environment_id cannot be null.")
        from .item.access_package_resource_environment_item_request_builder import AccessPackageResourceEnvironmentItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["accessPackageResourceEnvironment%2Did"] = access_package_resource_environment_id
        return AccessPackageResourceEnvironmentItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the resourceEnvironments property of the microsoft.graph.entitlementManagement entity.
        param access_package_resource_environment_id: The unique identifier of accessPackageResourceEnvironment
        Returns: AccessPackageResourceEnvironmentItemRequestBuilder
        
msgraph/generated/identity_governance/entitlement_management/resource_environments/resource_environments_request_builder.py